随笔分类 - JS插件库
摘要:http://www.wjhsh.net/smile-fanyin-p-15016684.html
阅读全文
摘要:npm install js-md5 import md5 from 'js-md5'; const res = md5(参数)
阅读全文
摘要:安装 npm i jsencrypt --save cnpm i encryptlong -S 引入 import {JSEncrypt} from 'jsencrypt'; 加密 // 新建JSEncrypt对象 const encryptor = new JSEncrypt(); // 设置公钥
阅读全文
摘要:依赖 npm install --save js-base64 引入 import {Base64} from 'js-base64'; 加密 const res = Base64.encode(body) 解密 const res = Base64.decode(body)
阅读全文
摘要:import numeral from 'numeral';千分位格式化 numeral(8846).format('0,0')
阅读全文
摘要:一、生成uuid插件 nanoid 1、安装 yarn add nanoid 2、引入 import {nanoid} from 'nanoid' 3、使用 let id = nanoid() 二、时间插件 moment 1、安装 npm install moment --save yarn add
阅读全文