我需要用xml節點替換具有字段名稱的節點。 我試着用replaceWith沒有正確解析。 至於建議here我試圖創建一個解決辦法來替代XML標籤 $.fn.replaceWithXML = function replaceWithXML(ele) {
var xml = this.html();
return $('<dummy />').append($(ele).app
我想從XML文檔中獲取多個標籤。我查看了this question,它基本上獲得了一個標籤的子元素,而我想要所有的標籤。使用同一示例XML(下面複製): var data =
"<root>
<instructions>Some ins text.</instructions>
<options>
<option>1.png</option>
<opt