@jswork/next-dom-event
v1.0.8
Published
Dom event api based on next toolkit.
Downloads
32
Readme
next-dom-event
Dom event api based on next toolkit.
installation
npm install -S @jswork/next-dom-event
apis
| api | params | description | | --- | ------ | -------------------- | | on | - | register a new event |
usage
import NxDomEvent from '@jswork/next-dom-event';
//create resources:
const el = document.getElement('test1');
const res = NxDomEvent.on(el,'click',()=>{
console.log('click!');
},capture);
res.destory();
license
Code released under the MIT license.