1.0.11 • Published 5 years ago

test-ye.song v1.0.11

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Installation

  • Using npm:
npm i test-ye.song
  • Then with a module bundler like webpack, use as you would anything else:
import { browser, random, queryCode } from 'test-ye.song';

Catalog

common
├─browser   // 解析UA,判断当前环境、版本
├─clearJSBridgeData // 清除JSBridge缓存数据
├─copyStr   // 一键复制
├─flexible  // 调整页面rem适配
├─getCookie // 获取cookie中的值
├─getHeaderItem // 获取head信息
├─insertAfter   // 插入dom元素
├─lengthOfStr   // 获取文本的长度
├─queryCode // 获取url参数
├─random    // 不重复随机数
├─removeClass   // 移除指定元素的class名称
├─removeDom // 移除dom元素
├─removeSpace   // 去除空格
├─setTitle  // 设置页面标题
├─Time  // time格式化
└─verifyMobile  // 验证手机号码

Usage

import JSBridge from 'test-ye.song/jsbridge';

<div onClick={()=>{
    JSBridge.open(url)
} /> 
1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago