As the saying goes, the framework is service with everyone, including more functions, more code. In the age of pursuit of speed now. You should encapsulate the components that you need according to your needs.
Here is a brief introduction to your own package of a small bullet box component, not dependent on jquery, code is small, suitable for general mobile projects.
This plugin name: Mobileui
Includes function: Bullet box, loading, tips1.5 seconds disappear, purge is loading.
Next I will tell you how to use it!!
First step: Configure <meta name= "viewport" content= "Width=device-width, initial-scale=1.0, maximum-scale=1.0, User-scalable=no" >
Step Two: Load Mobile-ui1.0-compress.js
Step Three: Use
1 /*---The first-with-a popup box that determines and cancels---*/2 Mobileui.init ({3Title: ' Confirm Delete ',4Text: ' Are you sure you want to delete it? ‘,5Type:1,6Callbak:function(){ 7Console.log (' Callbak ');8 }9 });Ten One /*---The second--with--a pop-up box to determine---*/ A Mobileui.init ({ -Type:2, -Title: ' Hints ', theText: ' Your operation is wrong ', -Callbak:function(){ -Console.log (' Callbak '); - } + }) - + /*---The third--Data loading---*/ A Mobileui.init ({ atType:3 - }) - - /*---The fourth type--the message disappears automatically---*/ - Mobileui.init ({ -Type:4, inText: ' Your phone number is wrong ' - }) to + /*---Fifth-remove data loading---*/ - Mobileui.init ({ theType:5 *})
Mobile-side (H5) bullet-Box component--simple--practical--not dependent on jquery