/*获取隐藏域数据,并将数据转为数组*/ var Ids = x.val(); var eachParamer = Ids.substring(0,Ids.length-1).split(","); $.ajax({ url: m+"/selfprogram/selfProgram/showParam?paramIds="+Ids,", type: "post", dataType:"json", success: function (data) { var obj = eval(data);
.......
参数传递,在chrome下好着,但在ie8下报错,不能传中文
解决办法如下:
function queryByParam(x,y,z,m){ /*获取隐藏域数据,并将数据转为数组*/ var Ids = x.val(); var eachParamer = Ids.substring(0,Ids.length-1).split(","); $.ajax({ url: m+"/selfprogram/selfProgram/showParam", type: "post", dataType:"json", data:{"paramIds":Ids}, success: function (data) { var obj = eval(data); var str = "";
....