如何解析从 RESTfull 服务返回的 Backbone js 响应 JSON
拿来()
我得到的 JSON 格式如下。
[{"custId":7,"cookieNum":"","emailId":"raju.allen1888@gmail.com","facebookId":"","twitterId":"","gmailId":"","mobilePhone":""},{"custId":8,"cookieNum":"","emailId":"raju@gmail.com","facebookId":"","twitterId":"","gmailId":"","mobilePhone":""}]
但是当我在控制台中打印响应时
Object { custId=7, tenantId=1, emailId="raju.allen1888@gmail.com", more...}
如何解析响应以从backbone.js中的响应json中获取“custId”和“emailId”
因为我是骨干新手,所以我无法弄清楚。