简体   繁体   English

如何从特定元素中删除fastclick?

[英]How to remove fastclick from a specific element?

I am using fast click and I am applying it to the body by: 我正在使用快速点击 ,我将它应用于身体:

FastClick.attach(document.body);

How do I not apply it to an element like: 我怎么不将它应用于如下元素:

<div class="item">My El</div> -- Do not apply fastclick to this element

UPDATE UPDATE

Missed the doc which tells how to 错过了讲述如何的文档

如果你将一个类“needsclick”添加到一个元素,那么fastclick将不会尝试做它的特殊魔法。

<div class="item needsclick">My El</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM