我这个为啥没效果呢
<div><b id="oldnode">JavaScript</b>是一个很常用的技术,为网页添加动态效果。</div>
<a href="javascript:replaceMessage()"> 将加粗改为斜体</a>
<script type="text/javascript">
function replaceMessage(){
var newnode = document.createElement("i");
var newTest = document.createTestNodes("javascirpt");
newnode.appendChild(newTest);
var oldNode = document.getElemenetById("oldnode");
oldNode.parentNode.replaceChild(newnode,oldNode);
}
</script>