|
|
用下面的js无效
- document.querySelector("div.root-box").insertAdjacentHTML("beforeend","<a href='mailto:[email protected]'>联系&留言</a>");
复制代码
提示下面错误
Uncaught TypeError: Cannot read properties of null (reading 'insertAdjacentHTML')
这个错误网上搜索资料很少,也没见有效解决方法。
请问各位大佬,这应该如何解决?
提前感谢!! |
|