hqy_front

1.0.2 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i hqy_front

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

34.8 kB

Total Files

7

Last publish

Collaborators

  • songwei-sw