前端
var arr = [];
dataQty.push(1);
dataQty.push(2);
$.ajax({
url: ashx地址,
data: {arr:JSON.stringify(arr)},
type: 'post',
dataType: 'json',
success: function(data){
}
});
后端
using System.Web.Script.Serialization;
int[] arr = new JavaScriptSerializer().Deserialize