linanaliu51k / z.js

util lib by rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

z.js

Build Status codecov

前端工具库

安装

  1. 直接使用lib目录下的z.min.js
  <script src="z.min.js"></script>
  <script>
      var params = _.getParamByName('a')
  </script>
  1. npm/yarn安装
$ yarn add zrutil

使用方法: 支持tree shaking按需加载

import {iOS,getParmaByName} from 'zrutil'
const isIOS = iOS()
...
或者
import * as _ from 'zrutil'
const isIOS = _.iOS()
...

文档

device reg dom url

About

util lib by rollup

License:MIT License


Languages

Language:TypeScript 60.1%Language:JavaScript 36.2%Language:HTML 3.6%