jQuery.parseJSON( json ) 将字符串转化为json对象

http://api.jquery.com/jQuery.parseJSON/

 

Example:

Parse a JSON string.

var obj = jQuery.parseJSON('{"name":"John"}');
alert( obj.name === "John" );

posted on 2010-11-25 22:11  linzheng  阅读(20282)  评论(2编辑  收藏  举报

导航