哪里出问题了
<script type="text/javascript">
function replaceMessage(){
var oldnode=document.getElementsTagName("b");
var oldHTML= oldnode.innerHTML;
var newnode=document.createElement("i");
oldnode.parentNode.replaceChild(newnode,oldnode);
newnode.innerHTML=oldHTML;
}
</script>