传递数组
js中 ajax 传参
数组
var gg = new Array();
gg[0] = '100s';
gg[1] = 'b95fbe7af56644caa7ae309f075c4845';
var ff = JSON.stringify(gg);
json 传参
var param = { "ID": "8", "XH": "99", "ZRC": "测试", "HZ": "测试,ttt", "LXFS": "测试", "NHSX": "234", "EFJB": "tytt", "SFDG": "wwww" }
$.ajax({
type: "post",
dataType: "json",
url: "http://localhost:8000/Handler/PoorCustom.ashx?Service=Poor&Type=POST&Method=GetDelFP_WFGZ",
data: ff,//"{\"ID\":\"测试\",\"XH\":\"2\",\"ZRC\":\"测试\"}",
success: function (data) {
var t = data;
}
});
Get传参
$.ajax({
type: "get",
dataType: "json",
url: "http://10.91.107.29:8000/Handler/PoorCustom.ashx?Service=Poor&Type=get&Method=GetUpFP_WFGZ&PS= '叶屋','蔡友娣','13719648892','低保贫困户,无劳动能力户 ','f级','已完工','64'",
success: function (data) {
var t = data;
}
});