开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜