Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
json.stringify不适用于IE8及以下版本,使用json2.js_Json_Web Services_Internet Explorer_.post_Stringify - Fatal编程技术网

json.stringify不适用于IE8及以下版本,使用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

下面是我的代码。它适用于IE8及以上版本,也适用于chrome和FF。。。之前我得到了未定义的json,我使用了json2.js,现在我得到了警告

"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在开发者工具中有网络标签吗??