javascript - 如何用js对xml 时间排序?
天蓬老师
天蓬老师 2017-04-11 12:23:36
0
0
548
<item>
  <title>
    <![CDATA[云南网携]]>
  </title>
  <source>云南网</source>
  <author>3</author>
  <pubDate>25-08-2016 10:49:01 GMT</pubDate>
  <link>
    <a href=""/>
  </link>
</item>
<item>
  <title>
    <![CDATA[桂园向马碧]]>
  </title>
  <source>云南网</source>
  <author>1</author>
  <pubDate>22-08-2016 11:49:01 GMT</pubDate>
  <link>
    <a href=""/>
  </link>
</item>
<item>
  <title>
    <![CDATA[希望小学献爱心]]>
  </title>
  <source>云南网</source>
  <author>2</author>
  <pubDate>26-08-2016 10:49:01 GMT</pubDate>
  <link>
    <a href=""/>
  </link>
</item>

如何对上述xml文件用js对<pubDate>里的时间对<item>按最新时间进行排序?谢谢!

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!