开发者

What is wrong with my json in context of jQuery.jsonParse?

开发者 https://www.devze.com 2023-02-21 04:38 出处:网络
I\'m getting an \'invalid js开发者_StackOverflowon\' exception for a set of json.I tested the json in a validator.I\'ve placed the json inside of a php file and set the header to \"contenttype:applica

I'm getting an 'invalid js开发者_StackOverflowon' exception for a set of json. I tested the json in a validator. I've placed the json inside of a php file and set the header to "contenttype:application/json; charset=utf-8."

Not sure what else could be the culprit. I have my jsfiddle here: jsfiddle


$.parseJSON doesnt load a URL, you pass it a json string. the function youre looking for is $.getJSON.

0

精彩评论

暂无评论...
验证码 换一张
取 消