0
目前,feed xml将返回20个项目(子项),每次我只想在单个页面中显示10个项目。 jQuery的.each功能会循环整个文档吗?但我想让它只循环10个项目?我需要使用':eq()'吗?通过jQuery读取XML节点的好方法?有限循环!
注意:我需要将此用于移动设备环境。
<channel>
<title>Property</title>
<link></link>
<lastbuilddate>Wed, 13 Oct 2010 23:50:51 GMT</lastbuilddate>
<generator>FeedCreator 1.8.0-dev ([email protected])</generator>
<atom:link href="sample.com" rel="self" type="application/rss+xml"></atom:link>
<item>
<title>sample title</title>
<description>
#cdata-section
</description>
<pubdate>Wed, 08 Dec 2010 23:04:25 GMT</pubdate>
</item>
<item>... ... </item>
<item>... ...</item>
<item>... ... repeat 20 times </item>
<channel>
ya它是工作,谢谢:) – arkchong 2010-12-10 06:44:35