document.getElementById(obj).style.color="#ff0000"; style.className="新样式名
document.getElementById("btn_submit").disabled = true;"; button 提交后不可再次提交
本文介绍如何使用JavaScript禁用按钮以防止重复提交,并展示如何更改元素的颜色样式。
document.getElementById(obj).style.color="#ff0000"; style.className="新样式名
document.getElementById("btn_submit").disabled = true;"; button 提交后不可再次提交

被折叠的 条评论
为什么被折叠?