双击文档

时间:2017-02-16 21:03:45

标签: javascript

双击而不是单击

var element = document.getElementById('callModal')
element.addEventListener("click", (e:any) => this.test(e));

如何防止这种情况?

MouseEvent {isTrusted: true, screenX: 831, screenY: 275, clientX: 766, clientY: 185…}
MouseEvent {isTrusted: true, screenX: 831, screenY: 275, clientX: 766, clientY: 185…}

1 个答案:

答案 0 :(得分:0)