报错

document(/setattribute).GetElementById is not a function
document(/setattribute).GetElementById is not a function

产生原因:

js是严格区分大小写的

解决方法

严格按照方法名称书写:GetElementById 修改为getElementById
setattribute修改为setAttribute

相关文章: