🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

zc-share

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zc-share

zc-utils

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
23
155.56%
Maintainers
1
Weekly downloads
 
Created
Source

提供各种工具类方法

调用方式

//大部分方法都可以这样直接调用而且是按需加载的
import { xxx } from '@2dfire/share'
//部分模块无法像上面那样调用(因为用到第三方模块无法按需加载),所以需要像下面这样才能按需加载
import cookie from '@2dfire/share/Cookie'
//以下带*的表示要像上面这样调用

将各种方法分类放在不同模块下,下面是各种模块的说明

模块使用文档链接
Cookie *cookie 的各种操作
Gw *网关
DataType各种数据类型判断
Location游览器 url 相关
Random随机数
GetSet各种设置和获取指
Navigator游览器 Navigator 相关
RegExp正则相关
QueryString *query-string 方法
Date *日期相关
VueI18n *vue 的国际化
CSS *初始化 CSS,就是 reset 重置一些 css
Http *axios 相关

注意事项

  • 如果你是在 fire-cli 创建的项目中的话,那么默认集成了@2dfire/share,可以直接像上诉那样调用
  • 其他项目中也可以单独安装@2dfire/share 这个库,但是按需加载需要你自己去配置你的 webpack 配置

FAQs

Package last updated on 22 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts