所以我需要得到下面的值:我有一個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