XMLHttpRequest responseType = “json” giving error SYNTAX_ERR: DOM Exception 12

前端 未结 2 1194

I am having trouble setting the XHR responseType to \"json\". It works fine if I leave it an empty string xml.responseType = \"\"; but when I set it to \"json\

2条回答
  •  误落风尘
    2020-12-25 13:51

    The JSON responseType is not implemented in the WebKit. http://groups.google.com/a/chromium.org/group/chromium-bugs/browse_thread/thread/8107e50e4207eb5a/a5d2c31247feae56?lnk=raot

    Update 2016-01-03: As could be expected, WebKit has implemented this feature in the meantime.

提交回复
热议问题