交作业啦~~~
function replaceMessage() {
let b = document.querySelector('b');
let i = document.createElement('i');
let oldNodeParent = b.parentElement;
i.innerText = b.innerText;
oldNodeParent.replaceChild(i, b);
}
function replaceMessage() {
let b = document.querySelector('b');
let i = document.createElement('i');
let oldNodeParent = b.parentElement;
i.innerText = b.innerText;
oldNodeParent.replaceChild(i, b);
}
2021-01-17
举报