Git Product home page Git Product logo

utils-js's Introduction

项目介绍

整合了常用的一些方法

查看示例

支持 es6 模块导入,commonJs 导入

两数相加:

import { mathAdd } from 'utils-js-htt';

支持方法

日期

getNextMonday: 获取下周一日期

isToday:判断给定日期是否是今天

getQuarterTime:取距离当前最近的整刻时间

环境

isQQ:判断是否 qq 环境

isIOS: 判断是否 ios 环境

isWxWebView:判断是否微信环境

数字

formatMoney:格式化金额,保留 2 位小数

isAvailableTele:是否电话格式

mathAdd:两数相加

mathSub:两数相减

mathMul:两数相乘

mathDiv:两数相除

randomInt:给定两数范围之间的随机整数

formatPhoneType:格式化手机号

字符串

specialStrFilter:过滤特殊字符

utils-js's People

Contributors

15167103105 avatar

Watchers

James Cloos avatar

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.