1.0.28 • Published 3 years ago

aui-1.0 v1.0.28

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

aui

js常用方法库

安装

   npm i aui-1.0

引入

   import aui from 'aui-1.0'
    
   Vue.prototype.aui = aui

示例

extend 对象合并(可实现多层对象深度合并)

   this.aui.extend("原始参数", "新参数", true);

isDefine 判断字符串是否为空

   this.aui.isDefine(str);

space 删除字符串中指定字符

   this.aui.space(str, true);

replaceStr 去除字符串中空格

   this.aui.replaceStr('原字符串', '指定字符');

uniq 数组去重

   this.aui.uniq(arr);

getUrlstr 截取URL中字符串(可获取中文内容)

   this.aui.getUrlstr('id');

random 生成随机数

   this.aui.random(10, 100);

setLocal 本地存储(可设置存储时间)

   this.aui.setLocal('items', items, 1*24*60*60);
   //获取缓存
   this.aui.getLocal('items');
   //移除缓存,一般情况不手动调用,缓存过期自动调用
   this.aui.removeLocal('items');
   //清空所有缓存
   this.aui.clearLocal();

import 引入 js / css 文件

   this.aui.import('aui.js')
   this.aui.import(['aui.js', 'aui.css'])
1.0.26

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.10

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago