10 frequently-used function
npm install adam-yjy
import Tool from 'adam-yjy'
Gets the value of the specified name in the specified querystring
Tool.query('hello', '?hello=js') //return 'js
serialized objects
Tool.serialize({hello: 'js', hi: 'test'}) return 'hello=js&hi=test'
Lookup DOM according to the selector
Tool.$ (selector) //return DOM
Delete the DOM node
Insert the node node after the target node
Add class to the specified DOM
Remove class from the specified DOM
Getting the absolute path on the current page
Tool.getAbsoluteUrl('/jerojiang') => 'http://imweb.io/jerojiang'
debounce
Moving an item out of an array by index
Tool.removeItemByIndex(1, [1,2,3]) => [1, 3]