angular json 格式的字符串转 json

var s = "[{"id":"5","skid":"2","specid":"38","pid":"24","proprice":"13","proimg":"","price":"5","inventory":"1000","maxCnt":"20","createdate":"1435547211","lastupdate":"1435547211","syncStatus":"1","status":"1"},{"id":"6","skid":"2","specid":"34","pid":"20","proprice":"68","proimg":"","price":"5","inventory":"2000","maxCnt":"20","createdate":"1435547211","lastupdate":"1435547211","syncStatus":"1","status":"1"}]"

angular.fromJson(s);

你可能感兴趣的:(angular json 格式的字符串转 json)