<script type="text/javascript">
function replaceMessage(){
var newnode=document.creatElement("i");
var oldNode=document.getElementById('oldnode');
var oldHTML=oldNode.innerHTML;
oldNode.parentNode.replaceChild(newnode,oldNode);
newnode.innerHTML=oldHTML;
}
var newnode=document.createElement("i");
第三行createElement(“i”);你少了一个字母e