您好,请参考以下代码:
- let bar = document.querySelector(".top-panels");
- bar.style.display = 'none';
- let newEle = document.createElement("div");
- newEle.innerHTML = "custom content";
- document.querySelector(".ribbon").insertAdjacentElement('afterend', newEle);
复制代码 |
|