the javascript below is the line 13 and the h1 is my html tag index.js:13未捕获TypeError:无法在index.js:13处设置null的属性“”innerHTML“” <h1 id="text">javascript practice</h1>
document.getElemen
我昨天花了很大一部分时间试图找出造成这个错误的原因,但始终没有发现。一切似乎都正常,我想回去重构它,但是错误与我有关。Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML') at setupDay (getWeatherInfo.jsDOCTYPE html>
<head&g