解决IE6 IE7 JSON.stringify JSON 未定义问题

时间:2014-06-27 00:40:27   收藏:0   阅读:296

在项目中引入json2.js 

官方http://www.json.org/

源码地址:https://github.com/douglascrockford/JSON-js

 

 


$.ajax({
url: ‘/LicXXse/Add‘,
contentType: "application/json; charset=utf-8",
type: ‘POST‘,
data: JSON.stringify(PostData),//还是这样写即可
async: true,
success: function (result) {
//json = JSON.parse(result);
json = jQuery.parseJSON(result);
if (json.IsSuccess) {

解决IE6 IE7 JSON.stringify JSON 未定义问题,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!