ajax传参在ie8中的问题

2021-06-09 10:01

阅读:636

标签:self   color   隐藏   不能   解决办法   code   传递   数组   sub   

    /*获取隐藏域数据,并将数据转为数组*/
        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",
            data:{"paramIds":Ids},
            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 = "";
....

 

ajax传参在ie8中的问题

标签:self   color   隐藏   不能   解决办法   code   传递   数组   sub   

原文地址:http://www.cnblogs.com/person008/p/7300828.html


评论


亲,登录后才可以留言!