The repository about MHQ has implemented most basic functions and its detailed will be introduced then. It also realizes Programming Chain.
- If have download this repository, you can use MHQ Object like jQuery object;
- You can also use M like $。
- each()
- return an Object, implements traverse;
- map()
- retuen an Array
- next()
- return DOM Object, it is the next element of the current dom element
- nextAll()
- return Array about DOM Object, they are the next all elements of the current dom element
- prev()
- return DOM Object, it is the previous element of the current dom element
- prevAll()
- return Array about DOM Object, they are the previous all elements of the current dom element
- deepCloneNode()
- return new Node
- unique()
- return MHQ Object
- contains()
- return boolean value
- filter()
- return MHQ Object which contains those elements which meet some condition
- trim()
- remove the spaces
- toArray()
- used to transform array
- get()
- used to get DOM element in one MHQ Object which composed by DOM elements
- pushstack()
- the main using is to restore chain
- parseHTML
- appendTo()
- prependTo()
- prepend()
- append()
- next()
- prev()
- remove()
- after()
- before()
- parent()
- children()
- find()
- filter()
- end()
- attr()
- prop()
- css()
- hasClass()
- addClass()
- toggleClass()
- removeClass()
- on()
- event
- type
- clientX
- clientY
- screenX
- screenY
- pageX
- pageY
- altKey
- shiftKey
- ctrlKey
- target