tool-common-utils
v0.0.7
Published
javascript工具库
Downloads
34
Maintainers
Readme
commonUtils
javascript工具库
安装
- npm模块引入
npm i tool-common-utils
- cdn引入
<script src="https://cdn.jsdelivr.net/npm/tool-common-utils/dist/index.umd.js"></script>
使用示例
- npm示例
// 方式一:按需使用
import { Local } from "tool-common-utils";
Local.set('name','value...')
// 方式二: 全局导入
import commonUtils from "tool-common-utils"
commonUtils.Local.set('name','value...')
- cdn示例
<script src="https://cdn.jsdelivr.net/npm/tool-common-utils/dist/index.umd.js"></script>
<script >commonUtils.Local.set('name','value...')</script>