0.0.4 • Published 2 years ago

wb-toolbox v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

wb-toolbox

javascript toolbox for wb-ui.

Installation

npm install

Start Dev Server

npm start

Build Prod Version

npm run build
npm run build-lib

Features:

When you run npm run build we use the mini-css-extract-plugin to move the css to a separate file. The css file gets included in the head of the index.html.

引入

const WBToolbox = require('wb-toolbox')
import {test_reg} from 'wb-toolbox'

导出方法

test_reg 数据验证

/**
 * 数据验证
 * @param str 待验证数据
 * @param reg 使用模式[special_str(特殊字符串), idCard(身份证号)]
 * @returns {*}
 */
test_reg(str, reg)