<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
</head>
<body>
    <input type="button" onclick="test1()" ondblclick="test2()" value="点击">
    <script type="text/javascript">
//单击事件
function test1 () { console.log('单击'); }
//双击事件
function test2 () { console.log('双击'); } </script> </body> </html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
猜你喜欢
  • 2022-02-17
  • 2022-12-23
  • 2021-07-17
  • 2022-01-01
  • 2022-01-19
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案