1.0.9 • Published 2 years ago

means-tool v1.0.9

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

describe

Common methods of front-end development

🔥 This plug-in is mainly for the front-end work of some common methods of encapsulation and some common RE and file format processing 🎉

✨ 📢 ⭐ 🍋 ☀️ 🍫 💸 🧸 🚀 💪 🌍 🏡

install

npm install means-tool

introduce

import means from 'means-tool' // or
import means from 'means-tool/dist'

employ

means.urlToObjet('https://********index?id=1131goods=494')

API

  • 📢 x 表示没有参数
  • ☀️ string|number等表示有参数或者数据类型
  • 💸 1或者true等表示该参数的默认值
  • 🍫 ?意思是可以为空
method/方法explain/说明参数1参数2参数3参数4返回类型
1、means
urlToObjeturl链接转对象stringxxxObject
asciiASCII sortstringxxxstring
trim清除字符串空格string1xxstring
randomColor随机16进制颜色xxxxstring
max最大值Arraystring?xxstring
min最小值Arraystring?xxstring
throttle节流Functionnumber?xxstring
shake防抖Functionnumber?xxstring
2、regular
phone电话号码验证stringxxxBoolean
identityCard身份证验证stringxxxBoolean
3、files
getImageInfo获取图片信息stringxxxPromise
base64toFilebase64转file文件stringxxxfile对象

❤️ Common front-end methods will continue to be updated

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago