Coder Social home page Coder Social logo

mutils's Introduction

关于mUtils

文档地址

产生背景

这是关于个人日常比较通用代码的收集

功能描述

该方法一共包含以下属性,每个属性收集了对应的方法内容

  • flexible 移动端rem适配方案

  • RequestUtils 基于axios请求的二次封装

  • FeedbackUtils js反馈类的封装

  • DomUtils 该属性主要时针对dom元素相关的方法,针对于元素的一些操作

  • DeviceUtils 设备相关的检测与方法

  • StoreUtils 该属性主要是对于数据的操作

  • ExpUtils 该属性是d-js-utlis里的一个类,此属性包含对于一些字符,或者元素判断是否符合要求

  • GenericUtils 其他相关js工具代码,通用工具类

  • LogUtils 日志相关

  • PerformanceUtils 浏览器性能相关

  • UrlUtils url地址的一系列操作

  • ImageUtils 图片合成相关

快速使用

安装

使用npm安装 mUtils 依赖

npm i js-utils-m

yarn

yarn add js-utils-m

使用

获取所有方法

import mUtils from 'js-utils-m'
mUtils.FeedbackUtils.Toast('Hello,World', 5000)

按需引入

import { FeedbackUtils, LogUtils } from 'js-utils-m'
FeedbackUtils.Toast('Hello,World', 5000)
LogUtils.logInfo('mUtils')

直接引用js

<script src="http://static.huadong.uniqorn.com.cn/js/utils/mUtils.js"></script>
<script>
  mUtils.FeedbackUtils.Toast('Hello,World', 5000)
</script>

mutils's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.