var gallery = new TGallery([[{"image":{"updated_at":"2010-03-20T00:00:00Z","title":"dfgdfg","spam_reports":0,"by_profile_id":1,"comment_count":0,"id":1,"description":"htt","on_type":"profile","adult_reports":0,"on_id":1,"created_at":"2010-03-20T00:00:00Z"}]]);
然后在TGallery类中,我想将json对象转换为js对象。 感谢JQuery:json的对象?
如果没有可能是一个插件... :)
Teehee。有人忘了JSON *是* javascript。 – spender 2010-04-01 00:10:15