日期:2014-05-16 浏览次数:20288 次
var xml = "<rss version='2.0'><channel><title>RSS Title</title></channel></rss>", xmlDoc = $.parseXML(xml), $xml = $(xmlDoc),
var xml = "<rss version='2.0'><channel><title>RSS Title</title></channel></rss>", xmlDoc = $.parseXML(xml), $xml = $(xmlDoc); if ($xml[0].xml) alert($xml[0].xml) else if (window.XMLSerializer) { var sl = new XMLSerializer(); alert(sl.serializeToString($xml[0])) }