jquery解析xml字符串简单示例_jquery
程序员文章站
2022-03-19 16:59:08
...
复制代码 代码如下:
var $xml = $("
function log(o){
$("textarea").val($("textarea").val()+"\n"+o);
}
log($xml.text());
log($xml.html());
log($xml.children("cc").html());
log($xml.children("bb").attr("para"));
log("each");
$xml.find("cc").each(function(){
log($(this).text());
});