1.0.2 • Published 4 years ago

hqy_front v1.0.2

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

3.获取链接中参数列表 引入: import {GetRequest} from 'hqy_front'; 使用: GetRequest(window.location.hash);

9.base64解码、编码 编码: 引入: import {encodeFuc} from 'hqy_front'; 使用: encodeFuc(JSON.stringify({type: "xxx",id: "xxx"}));

解码: 引入: import {decodeFuc} from 'hqy_front'; 使用: decodeFuc(JSON.parse({type: "xxx",id: "xxx"}));

11.数组去重返回新数组(一级可以包含对象) 引入: import {SetArray} from 'hqy_front'; 使用: SetArray([{t: 1}, {t: 2}, {t: 3}, {t: 2}, {t: 1}]);

16.删除对象的指定属性 引入: import {deleteKInObjOrAry} from 'hqy_front'; 使用: deleteKInObjOrAry({name: 'sw',age: 10,time: {name: 1},row: [1,2]}, 'time');