function replaceMessage(){ var oldnode=document.getElementById("oldnode"); var oldHTML= oldnode.innerHTML; var newnode=document.createElement("i"); oldnode.parentNode.replaceChild(newnode,oldnode); newnode.innerHTML=oldHTML; }
添加回答
举报
0/150
提交
取消