<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>按钮倒数5秒后才能点击</title>
    </head>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <body>
        <button type="button" id="test" disabled>点击</button>
    </body>
    <script type="text/javascript">
        setTimeout(function(){
            $("button[id='test']").removeAttr("disabled");
        },5000)
    </script>
</html>

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-11-22
  • 2021-11-04
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-09-22
  • 2021-12-19
  • 2021-06-05
  • 2021-12-03
  • 2021-12-19
  • 2021-08-28
  • 2021-12-22
相关资源
相似解决方案