1.0.0 • Published 5 years ago

p110 v1.0.0

Weekly downloads
4
License
ISC
Repository
-
Last release
5 years ago

常用的基本函数(练习)

包括: query: 获取指定的 querystring 中指定 name 的 value

serialize: 序列化对象,就是把对象转成 url 字符串

$:根据选择器查找 DOM

removeNode: 删除 DOM 节点

insertAfter: 在 target 节点之后插入 node 节点

addClass: 添加类名

removeClass: 移除类名

getAbsoluteUrl: 获取绝对路径

debounce: 防抖动函数

removeItemByIndex: 根据所以移出数组的某一项

npm run jest 单元测试 npm run coverage 测试覆盖率