Loving Coding & Visual Design

Jquery Ajax Parsererror: Unexpected end of input


使用jquery-1.9.1进行ajax提交 Error 报错:
parsererror
Unexpected end of input

根据这里的解释:

"parsererror", SyntaxError: {message: "Unexpected end of input"}

jQuery 1.8.3 did report a success, 1.9.1 reports a failure.


根据这里的解释,解决办法是:
var json = $.parseJSON(jsonString || "null");
或者
dataType: "text"



下一页


最 近 文 章

  1. FLASH阴谋论 - 2017-08-02T15:15:04.977Z
  2. Letsencrypt Renew 的坑 - 2017-08-02T15:12:37.509Z
  3. Hugo serve panic 报错 - 2017-06-22T03:41:30.426Z
  4. 把reactjs升级到15.5.4 - 2017-05-24T15:04:15.880Z
  5. 关于SSL证书 - 2017-05-03T16:40:33.137Z
  6. 关于小朋友和游戏 - 2017-04-09T08:38:25.592Z
  7. 小程序不全面自由开放只有死路一条 - 2017-03-29T14:49:25.034Z
  8. Xcode6.3出错NSString is not implicitly convertible to String - Tue, 14 Apr 2015 14:37:47 +0000
  9. Jquery Ajax Parsererror: Unexpected end of input - Fri, 10 Apr 2015 05:43:22 +0000
  10. To Anyone Wanna Buy My Domains - Mon, 23 Mar 2015 15:41:22 +0000