哪里有问题~~
function replaceMessage(){
var nnode=document.createElement("i");
var nnnode=document.createTextNode("JavaScript");
nnode.appendChild(nnnode);
var oldNode=document.getElementById("oldnode");
oldNode.parentNode.raplaceChild(nnode,oldNode);
}
function replaceMessage(){
var nnode=document.createElement("i");
var nnnode=document.createTextNode("JavaScript");
nnode.appendChild(nnnode);
var oldNode=document.getElementById("oldnode");
oldNode.parentNode.raplaceChild(nnode,oldNode);
}
2015-04-06
举报