data="[{"href":"systemMainten/dictConfig","icon":null,"id":1,"isDeskTop":null,"isEnabled":null,"roleRightGuid":null,"sysMenuNo":null,"text":"代理商配置"},{"href":"systemMainten/dictConfig","icon":null,"id":2,"isDeskTop":null,"isEnabled":null,"roleRightGuid":null,"sysMenuNo":null,"text":"学校配置"}]"
如何转化成数组
var data = eval('('+data+')');
JSON.parse 与 eval() 对于解析json的问题
网友评论