草庐IT

ServiceUpdate

全部标签

javascript - 在 MVC 中使用 JQuery Ajax 发布数组导致 500(内部服务器错误)

我有一个这样的数组:varnums=["21","22","23","20","19","18"];和这个JQueryAjax代码:$('#chk').click(function(){$.ajax({url:"/BarberShop/ServiceUpdate",type:"Post",data:{nums:nums},dataType:"json",success:function(data){}});});和这样的ControllerAction:[HttpPost]publicActionResultServiceUpdate(stringnums){//Dosomething