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
如果你将一个类“needsclick”添加到一个元素,那么fastclick将不会尝试做它的特殊魔法。
<div class="item needsclick">My El</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.