传递数组
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;
}
});
动力节点在线课程涵盖零基础入门,高级进阶,在职提升三大主力内容,覆盖Java从入门到就业提升的全体系学习内容。全部Java视频教程免费观看,相关学习资料免费下载!对于火爆技术,每周一定时更新!如果想了解更多相关技术,可以到动力节点在线免费观看Ajax视频教程学习哦!
代码小兵49806-11 15:28
代码小兵49806-11 15:51
代码小兵49806-11 16:22
代码小兵51603-29 17:28
暴风城-小飞04-06 20:49