ajax传输json数据 数据不全

来源:互联网 发布:手机紫光验钞灯软件 编辑:程序博客网 时间:2024/05/20 05:11
$.ajax({                        type: "POST",                        url: basePath+"Result_Run_Servlet",                        data: dataAll_run,                        success: function(data){                        plotData=data;                        $("#run").removeAttr("disabled");                            $("#plotPlayback").removeAttr("disabled");                            $("#videoPlayback").removeAttr("disabled");                        },                        error: function(XMLHttpRequest, textStatus, errorThrown) {                        $("#run").removeAttr("disabled");                        }                    });

ajax默认的接收数据类型是text

当处理json数据时可能会发生不全

当我加上了

dataType:"json",

以后   数据结束完全  显示没有问题

能作为json做相应的处理

1 0
原创粉丝点击