错哪了呢,求解啊,这样不行的吗
<script type="text/javascript">
function replaceMessage(){
var oldnode = document.getElementsTagName("b");
var newnode = document.creatElement("i");
oldnode.replaceChild(newnode,oldnode);
}
<script type="text/javascript">
function replaceMessage(){
var oldnode = document.getElementsTagName("b");
var newnode = document.creatElement("i");
oldnode.replaceChild(newnode,oldnode);
}
2017-03-23
举报