Why doesn't jQuery.parseJSON() work on all servers?

前端 未结 3 1767
旧时难觅i
旧时难觅i 2020-12-20 18:42

Hey there, I have an Arabic contact script that uses Ajax to retrieve a response from the server after filling the form.

On some apache servers, jQuery.parseJS

3条回答
  •  暖寄归人
    2020-12-20 19:14

    You should try using json2.js (it's on https://github.com/douglascrockford/JSON-js)

    Even John Resig (creator of jQuery) says you should:

    This version of JSON.js is highly recommended. If you're still using the old version, please please upgrade (this one, undoubtedly, cause less issues than the previous one).

    http://ejohn.org/blog/the-state-of-json/

提交回复
热议问题