js中使用json

var dataObj=eval("("+data+")");

data为从后台传过来的json对象

posted @ 2013-03-27 15:31  玉伽  阅读(131)  评论(0编辑  收藏  举报