为什么这样写不行》?获取b标签 再获取b标签的html值 然后b的爸爸的儿子b用i替换掉 而且把b的html给i
function replaceMessage(){
var b = document.getElemensByName("b");
var oldhtml = b.innerHTML;
var i = document.createElement("i");
b.parentNode.replaceChild(i,b);
i.innerHTML = oldhtml;
}
function replaceMessage(){
var b = document.getElemensByName("b");
var oldhtml = b.innerHTML;
var i = document.createElement("i");
b.parentNode.replaceChild(i,b);
i.innerHTML = oldhtml;
}
2015-05-22
举报