所以我需要得到下面的值:我有一个JSON对象,我需要从中取出一些值。我如何在JQuery中做到这一点?
- 位置
- 状态
- abc_status
- S_S
- S_E
- n_c
{ "skills": [], "languages": [], "cal_strs": [{ "test": null, "primary_test": null }], "id": 123, "my_id": 1346, "username": "blahblah", "full_name": "mr blah", "email": "[email protected]", "location": "boston", "manager": "boss", "status": 1, "abc_status": "here", "s_s": "2010-06-08T23:00:00Z", "s_e": "2010-06-13T07:00:00Z", "n_c": "2010-07-08T07:00:00Z", "last_here": null, }
件事情我已经尝试:
数据[0] - 给我的左括号“{” 数据[“位置”] - 返回undefined
? –
我试图做访问对象数据[0]然而,这给了我的左括号'{' – edward
我也尝试通过执行以下操作来访问对象属性:data ['location'] this undefined – edward