javascript - cannot set property "onclick" of null
大家讲道理
大家讲道理 2017-05-19 10:40:17
0
2
1054

As shown
The error reported is: cannot set property "onclick" of null at window.onload

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
迷茫

The element cannot be obtained. Set id to input

Ty80
  1. Please post the code next time;

  2. You are using document.getElementById(), but you didn’t give the id in your HTML structure;

  3. It is recommended to use element.getElementsByTagName(tagName)this API, this is the tag name.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template