Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sp5i5s/bt-utils
[原创] 常规工具类库
https://github.com/sp5i5s/bt-utils
es6 webpack
Last synced: 14 days ago
JSON representation
[原创] 常规工具类库
- Host: GitHub
- URL: https://github.com/sp5i5s/bt-utils
- Owner: sp5i5s
- Created: 2017-05-26T02:14:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T02:58:49.000Z (over 7 years ago)
- Last Synced: 2024-04-26T09:22:26.476Z (10 months ago)
- Topics: es6, webpack
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### BT工具类库,部分依赖layer和axios
#### 安装
> npm|cnpm install bt-utils
#### 使用
> 1. window.bt.https,支持get,post.put,delete
> 2. window.bt.string,全局String校验,比如"test".is_empty(),"test".is_mobile();
> 3. window.bt.array,数组操作类,常规去重、指定键与值返回实体
> 4. window.bt.msg,全局消息,依赖layer插件,bt.msg.show('txt'),bt.msg.loading();
> 5. window.bt.event,事件方法,bt.event.add(object,event_name,handle),bt.event.remove
> 6. window.bt.uri,URL处理类,获取当前URI或根据URL分解query
> 7. window.bt.window,窗口操作对象,获取当前窗体的宽高和访问设备
> 8. window.bt.object,对象操作类
> 9. window.bt.other,其他具体可bt.log(bt)查看所有内容