求解 错误:Uncaught TypeError: Cannot set property 'display' of undefined

Mr.Hamra Mr.Hamra 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
js问题 Uncaught TypeError: Cannot set property 'display' of undefined 求帮助

出错 js代码是 :

var oChai = document.getElementById("chai");
var oContainer = document.getElementById("container");

showmain.style.display = "none";
oChai.onclick = function() {oChai.setAttribute("class", "rotate");
setTimeout(function() {
oContainer.remove();
showmain.style.display = "";
var a=0;
var gundong=setInterval(function()
{
a+=1;if(a>=188){
clearInterval(gundong);
}
document.getElementById('get_money').innerHTML=a;
},6);
},1600)}
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
Mr.Hamra
JavaScript 87,984 成员 224,681 内容