dom-operator
0.1.0-1 • Public • Published dom-operator
一个简单高性能的dom操作工具包
Install
npm install dom-operator
Use
<script src="<path-to>/dom-operator/dist/index.js"></script>
var $ = domOperator('#child1')
import domOperator from 'dom-operator'
API
let $ = domOperator('#child1')
$.findParentByClassName('parent')
$.hasClassNameOfParent('parent')
$.hasParent(document.querySelector('.parent'))
Dev Or Build
npm i -g parcel
npm run serve
npm run build
Package Sidebar
Install
Weekly Downloads