代码如下:
function(oldNode,newNode) { oldNode.parentNode.appendChild(newNode) oldNode.parentNode.removeChild(oldNode); }