stableboy

 

(转)JS之——解决IE6、7、8使用JSON.stringify报JSON未定义错误的问题

https://blog.csdn.net/l1028386804/article/details/53439755

 

在通过JavaScript将对象类型的参数通过JSON.stringify转换成字符串传递时,IE6、7、8会报:“JSON”未定义 的错误。我们可以通过在html文件的head头内引入json2.js文件来解决

<!--[if lt IE 9]>
<script
src="json2.js"></script>
<![endif]-->
json2.js的下载地址:
https://github.com/douglascrockford/JSON-js
引入之后,JSON.stringify就可以在IE6、7、8正常使用了!

---------------------
作者:冰 河
来源:CSDN
原文:https://blog.csdn.net/l1028386804/article/details/53439755
版权声明:本文为博主原创文章,转载请附上博文链接!

 

posted on 2019-02-12 17:49  陌翔  阅读(963)  评论(0编辑  收藏  举报

导航