Mobile-side (H5) bullet-Box component--simple--practical--not dependent on jquery

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.