xz-tool

1.0.3 • Public • Published

tool

工具

用法

import {GET_URL_KEY} from 'xz-tool'

方法

/**
 * GET_URL_KEY (name)
 * 获取url中的参数的值
 * 参数
 * name [string] 参数名
 * 返回值
 * 参数的值
 */
 
 /**
 * wait (time = 20)
 * 定时器
 * 参数 
 * time [number] 时间 默认值20毫秒
 * 返回值
 * 无
 */

/*
 * CREATED_ID (pre = '')
 * 生成唯一的字符串
 * 参数
 * pre [number,string] [非必须] 前缀 [默认值: '']
 * 返回值
 * 随机字符串
 */

/**
 * is_weixin ()
 * 判断是否为微信浏览器
 * @returns {boolean}
 */

 /**
 * roundNum (min, max)
 * 获取随机数
 * @param min
 * @param max
 * @returns {number}
 */

Readme

Keywords

none

Package Sidebar

Install

npm i xz-tool

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

2.56 kB

Total Files

3

Last publish

Collaborators

  • xuxiaozhou