<packet version="1.0.0"> <status>success</status> <data> <item> <id>4b6a3c233b4cb</id> <count_view>41</count_view> <updated>2010-03-04 17:08:28</updated> </item> </data> </packet>
var val=$(xml).find("data>item>count_view").text();
<packet version="1.0.0"> <status>success</status> <data> <item> <id>4b6a3c233b4cb</id> <count_view>41</count_view> <updated>2010-03-04 17:08:28</updated> </item> </data> </packet>
var val=$(xml).find("data>item>count_view").text();
转载于:https://www.cnblogs.com/huangfenggu/p/4383985.html