fengjin08122359 / domq

🛠️ A modular DOM manipulation library.

Home Page:https://nzbin.gitbooks.io/domq-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Domq

npm license

A modular version of Zepto.js.

Installation

$ npm install domq.js --save

Instance methods

The methods as below is optional.

D().css()
D().attr()
D().removeAttr()
D().prop()
D().removeProp()
D().hasClass()
D().addClass()
D().removeClass()
D().toggleClass()
D().width()
D().height()
D().offset()
D().position()
D().scrollTop()
D().scrollLeft()
D().offsetParent()
D().remove()
D().empty()
D().clone()
D().html()
D().text()
D().append()
D().prepend()
D().after()
D().before()
D().replaceWith()
D().appendTo()
D().prependTo()
D().insertAfter()
D().insertBefore()
D().replaceAll()
D().find()
D().filter()
D().has()
D().not()
D().is()
D().add()
D().contents()
D().closest()
D().parents()
D().parent()
D().children()
D().siblings()
D().prev()
D().next()
D().index()
D().wrap()
D().wrapAll()
D().wrapInner()
D().unwrap()
D().val()
D().one()
D().on()
D().off()
D().trigger()
D().triggerHandler()
D().animate()
D().anim()
D().show()
D().hide()
D().toggle()
D().fadeTo()
D().fadeIn()
D().fadeOut()
D().fadeToggle()

Static methods

The methods as below is optional.

D.type()
D.contains()
D.camelCase()
D.isFunction()
D.isWindow()
D.isEmptyObject()
D.isPlainObject()
D.isNumeric()
D.isArray()
D.inArray()
D.trim()
D.grep()
D.noop()
D.Event()
D.proxy()

About

🛠️ A modular DOM manipulation library.

https://nzbin.gitbooks.io/domq-api/

License:MIT License


Languages

Language:JavaScript 100.0%