Home >Web Front-end >JS Tutorial >Simple example of jquery parsing xml string_jquery

Simple example of jquery parsing xml string_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:52:491304browse

复制代码 代码如下:

var $xml = $("bbtext cctext 789798aatext");
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());
});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn