【轉】關於JSON.parse在ie6,ie7下未定義的issue

問題: 在ie6下出現一個js error,說是JSON.parse爲定義,一查,才知道,ie6,ie7不支持JSON。 

解決方法: 只要在使用JSON以前加載個json2.js就好了。 


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

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

 

原文連接:http://site.douban.com/143011/widget/forum/6934620/discussion/50690664/github

相關文章
相關標籤/搜索