汇总常用工具
个人前端项目开发工具函数抽离,维护工具函数包!
安装
# npm
npm install jasonzhao-utils -S
# yarn
yarn add jasonzhao-utils -S
ESM 导入
import { random } from 'jasonzhao-utils'
console.log(random(1, 10))
RequireJS 导入
const { random } = require('jasonzhao-utils')
console.log(random(1, 10))