哪里错了?
function replaceMessage(){
var newnode = document.createElement("i");
var oldNode = document.getElementById("oldnode");
newnode.innerHTML ="java";
oldNode.parentNode.replaceChild(newnode,oldNode);
}
哪里错了吗?为什么JavaScript没有改成Java?
function replaceMessage(){
var newnode = document.createElement("i");
var oldNode = document.getElementById("oldnode");
newnode.innerHTML ="java";
oldNode.parentNode.replaceChild(newnode,oldNode);
}
哪里错了吗?为什么JavaScript没有改成Java?
2017-07-20
举报