# jquery.mloading **Repository Path**: ninuxGithub/jquery.mloading ## Basic Information - **Project Name**: jquery.mloading - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jquery.mloading 为jquery element增加loading遮罩效果,jquery.watercolor.js简易版 ![image](https://img.shields.io/npm/l/jquery.mloading.js.svg) [![image](https://img.shields.io/npm/v/jquery.mloading.js.svg)](https://www.npmjs.com/package/jquery.mloading.js) [![image](https://img.shields.io/npm/dt/jquery.mloading.js.svg)](https://www.npmjs.com/package/jquery.mloading.js) ![image](https://segmentfault.com/img/bVyRN0) 使用方法 ------ 将jquery.mloading.js和jquery.mloading.css引入到页面,调用: ``` $(element).mLoading({ text:"",//加载文字,默认值:加载中... icon:"",//加载图标,默认值:一个小型的base64的gif图片 html:false,//设置加载内容是否是html格式,默认值是false content:"",//忽略icon和text的值,直接在加载框中显示此值 mask:true//是否显示遮罩效果,默认显示 }); ``` 方法: - ```$(element).mLoading("show");//显示loading组件 ``` - ```$(element).mLoading("hide");//隐藏loading组件 ```