|
发表于 2010-5-13 21:05:05
|
显示全部楼层
看完这段的话,估计就全明白了
Important: As of jQuery 1.4, if the JSON file contains a syntax error, the request will usually fail silently. Avoid frequent hand-editing of JSON data for this reason. JSON is a data-interchange format with syntax rules that are stricter than those of JavaScript's object literal notation. For example, all strings represented in JSON, whether they are properties or values, must be enclosed in double-quotes. For details on the JSON format, see http://json.org/.
在1.4后,不管是键还是值(字符型)都要用双引号。 |
|