//刪除node 不知jQuery怎麼刪,就先用javascript原本的做法吧 var deleteMe = xmlDoc.getElementsByTagName("AAA")[0]; //刪第一個AAA xmlDoc.documentElement.removeChild(deleteMe);
//複製AAA加入BBB var AAA = $(xmlDoc).find("AAA").clone(); $(xmlDoc).find("BBB").append(AAA);
5 則留言:
匿名
提到...
Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Massagem, I hope you enjoy. The address is http://massagem-brasil.blogspot.com. A hug.
5 則留言:
Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Massagem, I hope you enjoy. The address is http://massagem-brasil.blogspot.com. A hug.
as your wish~~
and one more thing, i can't find your blog
oh~ yeah
and hope you understand Chinese
站長真有趣?明明JQuery就有函式XD,一定在開玩笑才說不知怎麼刪
//刪除node
$('AAA').remove();
//複製AAA加入BBB
$("AAA").clone().prependTo("BBB");
真的嗎
我是要刪xml nodeㄝ
我怎麼刪都當掉
莫非卡在哪了
張貼留言