json.stringify不适用于IE8及以下版本,使用json2.js
下面是我的代码。它适用于IE8及以上版本,也适用于chrome和FF。。。之前我得到了未定义的json,我使用了json2.js,现在我得到了警告json.stringify不适用于IE8及以下版本,使用json2.js,json,web-services,internet-explorer,.post,stringify,Json,Web Services,Internet Explorer,.post,Stringify,下面是我的代码。它适用于IE8及以上版本,也适用于chrome和FF。。。之前我得到了未定义的json,我使用了json2.js,现在我得到了警告 "something went wrong pls try again"... 为什么它没有成功..还有什么方法可以从服务器上检查IE8及以下版本上的json响应吗 $.post(serURL + '/saveForm', {'postdata': JSON.stringify(postJson)}, function(postRes){ pa
"something went wrong pls try again"...
为什么它没有成功..还有什么方法可以从服务器上检查IE8及以下版本上的json响应吗
$.post(serURL + '/saveForm', {'postdata': JSON.stringify(postJson)}, function(postRes){
parsedData = jQuery.parseJSON(postRes);
if (parsedData.Response.Header.Message == 'Success')
{
alert("success")
}
else {
alert('Something went wrong pls try again..');
}
}).error(function ()
{
alert("webservice issue");
})
您可以通过在IE中点击F12来检查响应,然后进入“网络”选项卡并在执行您的命令之前按“开始捕获”request@GregOks-谢谢你的建议,但是IE8在开发者工具中有网络标签吗??