1.0.0 • Published 4 years ago

@definejs/touch v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Touch.js

针对移动端的 touch 事件,用来替换到 PC 端的 click 事件。 扩展 jQuery 原型,使其实例上具有此方法。

const $ = require('@definejs/touch');

$.touch('button', function() {
    console.log('touched');
});