日期:2014-05-16 浏览次数:20342 次
// JQuery ajax 返回 XML Object
var xml = "<response>" +
"<dode>" +
"<aa>" +
"<bb>tyik</bb>" +
"<qq>" +
"<jj>dfdf</jj>" +
"</qq>" +
"</aa>" +
"</code>" +
"<message>message...</message>" +
"</response>";
//
var xmlDoc = $.parseXML(xml);
// to string
<div id=view>fdfd</div>
<script>
var xml = "<response>" +
"<code>" +
"<aa>" +
"<bb>tyik</bb>" +
"<qq>" +
"<jj>dfdf</jj>" +
"</qq>" +
"</aa>" +
"</code>" +
"<message>message...</message>" +