标签: javascript
我通过使用脚本将此代码链接到 html 但显示此代码来编写此代码
未捕获的错误:text.content of null。
const myHeading = document.querySelector('h1'); myHeading.textContent = 'Hello world!';