https://github.com/zswang/h5tap
Tap event trigger of mobile.
https://github.com/zswang/h5tap
javascript mobile-web tap-event
Last synced: 8 months ago
JSON representation
Tap event trigger of mobile.
- Host: GitHub
- URL: https://github.com/zswang/h5tap
- Owner: zswang
- License: mit
- Created: 2016-11-17T03:13:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T08:34:27.000Z (over 9 years ago)
- Last Synced: 2025-02-24T22:49:07.025Z (over 1 year ago)
- Topics: javascript, mobile-web, tap-event
- Language: JavaScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
h5tap Tap event trigger of Moblie.
-----
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
Smaller than smaller.
无他,就是小
## 使用方法
### 绑定事件 bind
```html
保存
```
```js
h5tap('div', '[cmd]', function (target) {
console.log(target.getAttribute('cmd'));
// > save
// * done
});
```
## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/h5tap
[npm-image]: https://badge.fury.io/js/h5tap.svg
[travis-url]: https://travis-ci.org/zswang/h5tap
[travis-image]: https://travis-ci.org/zswang/h5tap.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/h5tap?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/h5tap/badge.svg?branch=master&service=github