var thing = { plugin: 'jquery-json', version: 2.4 };var encoded = $.toJSON( thing );// '{"plugin":"jquery-json","version":2.4}'var name = $.evalJSON( encoded ).plugin;// "jquery-json"var version = $.evalJSON(encoded).version;// 2.4
posted on 2013-11-15 18:20 阅读( ...) 评论( ...)