网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  [HTML 5] Add event listener once

[HTML 5] Add event listener once

分类: IT文章 • 2024-02-09 08:16:49
 button.addEventListener(
   'dblclick',
   () => {
     console.log('Double-click!');
   },
   { once: true }
 );

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

相关推荐

  • 关于 SAP UI5 里包含的 jQuery 版本 Add a custom version of jQuery Modify index.html
  • [ASP.NET MVC] Real-time之HTML5 服务器发送事件(server-sent event)
  • [HTML 5] Add event listener once
  • [HTML 5] Event Delegation and Dynamic Events
  • [HTML5] Add an SVG Image to a Webpage and Get a Reference to the Internal Elements in JavaScript
  • 谷歌map添加点击事件 Google Maps API V3: Add click event listener to all (multiple) marker
  • 【html5】hashchange Event – 监测URL的hash变化
  • xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub! HTML5 Template in Action SSE: Server-Sent Event
  • springboot中使用druid和监控配置
  • springboot项目的重定向和转发
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号