天天饱

如果你只做自己能力范围之内的事情,就永远没法进步

关于JSON.parse在ie6,ie7下未定义的issue

情况是这样的: 
在ie6下出现一个js error,说是JSON.parse为定义,一查,才知道,ie6,ie7不支持JSON。 

solution:只要在使用JSON之前加载个json2.js就行了。 


参考:http://stackoverflow.com/questions/2503175/json-on-ie6-ie7 

json2.js 下载: https://github.com/douglascrockford/JSON-js 

posted @ 2016-12-14 04:07  天天饱  阅读(496)  评论(0编辑  收藏  举报