如何使用jQuery訪問Object Literal中的項目名稱?jQuery訪問JSON對象
比如我將如何讀 「稱號」, 「鏈接」, 「媒體」,等...在這個
{
"title": "What we do in our free time...",
"link": "http://www.flickr.com/photos/tnhimmies/4042938515/",
"media": {"m":"http://farm3.static.flickr.com/2572/4042938515_3a00561320_m.jpg"},
"date_taken": "2009-10-24T03:48:10-08:00",
"description": "<p><a href=\"http://www.flickr.com/people/tnhimmies/\">Darlene, TN Persians (www.tnpurrs.com)<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/tnhimmies/4042938515/\" title=\"What we do in our free time...\"><img src=\"http://farm3.static.flickr.com/2572/4042938515_3a00561320_m.jpg\" width=\"240\" height=\"230\" alt=\"What we do in our free time...\" /><\/a><\/p> <p>Tennessee Persians<br /> <a href=\"http://www.tnpurrs.com\" rel=\"nofollow\">www.tnpurrs.com<\/a><\/p>",
"published": "2009-10-25T18:28:36Z",
"author": "[email protected] (Darlene, TN Persians (www.tnpurrs.com))",
"author_id": "[email protected]",
"tags": "cat persian tnpurrs"
},
順便說一句,這不是一個*關聯數組*是*對象文本* http://is.gd/4BdvZ – CMS 2009-10-25 19:16:45