Git Product home page Git Product logo

vkit's Introduction

VKit

My javascript tool kit

整理一些常用的方法,收集到自己的工具包里。

当前版本:v1.1.1

已收录方法:

类相关:
  • getClassOf 获取一个对象的类名
数字相关:
  • accPlus 精确加法
  • accMinus 精确减法
  • accMultiply 精确乘法
  • accDivide 精确除法
  • moneyToCN 金额转换成大写
日期相关:
  • dateFormat 日期格式化
数组相关:
  • range 输入范围生成数组
  • unique 数组去重
字符串相关:
  • cutStr 字符串截取
  • replaceAll 正则全局替换
  • startWith 字符串开头检测
  • endWith 字符串结尾检测
  • isURL 判断是否为合法URL
  • reverseStr 反转字符串
  • toDBC 半角转换成全角
  • toCDB 全角转换成半角
  • getGUID 获取全局唯一标识符
Cookie相关:
  • setCookie 设置Cookie
  • getCookit 获取Cookie
移动设备相关:
  • isMobile 判断是否为移动设备
  • isApple 判断是否为苹果设备
  • isAndroid 判断是否为安卓设备
兼容性相关:
  • supportTransition 是否支持transition
  • flashVersion 获取已安装flash版本
应用相关:
  • copyToClipboard 复制内容到粘贴板

vkit's People

Contributors

vincentpat avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

qiangzi7723

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.