document(/setattribute).GetElementById is not a function

An error

document(/setattribute).GetElementById is not a function
Here Insert Picture Description

cause:

js is strictly case sensitive

Solution

In strict accordance with the method name written: GetElementById amended as getElementById
setAttribute amended as setAttribute

Published 138 original articles · won praise 42 · views 40000 +

Guess you like

Origin blog.csdn.net/weixin_40486955/article/details/105332205