TUTORIAL前端与浏览器FETCHED
Button disabled 属性
Button disabled 属性 Button 对象 实例 实例 1 禁用一个按钮: <script>document.getElementById('firstbtn').disabled=true;</script> 输出结果: OK 尝试一下 » 定义和用法 disabled 属性可设置或返回是否禁用按钮。 禁用的元素是不可用的..
更新于 2026/7/16
教程详情页默认 noindex。
Button 对象