为什么使用父节点parentNode?
<script type="text/javascript">
function replaceMessage(){
var oldnode=document.getElementById('oldnode');
var oldHTML=oldnode.innerHTML;
var newnode=document.createElement('i');
oldnode.parentNode.replaceChild(newnode,oldnode);//这一句话的parentNode,不懂
newnode.innerHTML=oldHTML;
}
</script>