请帮我看看我写的哪里有问题
function replaceMessage() { var newnode=document.createElement('i'); newnode.innerHTML="JavaScript"; var old=document.getElementById('oldnode'); var oldnode=document.getElementsByTagName('div') oldnode.replaceChild(newnode,old);;
}
function replaceMessage() { var newnode=document.createElement('i'); newnode.innerHTML="JavaScript"; var old=document.getElementById('oldnode'); var oldnode=document.getElementsByTagName('div') oldnode.replaceChild(newnode,old);;
}
2018-07-05
举报