How does H5 implement mobile app (mobile Web App )? Image carousel? Ionic, MUI,

Source: Internet
Author: User
Tags ruby on rails

How does H5 implement mobile app (mobile Web App )? Image carousel? Ionic, MUI,

Mobile Web App
Cross-platform development
Users do not need to go to the store to download and install the App
Apps can be published at any time
Only one development project is required
You can use HTML5, CSS3, JavaScript, and server-side languages (PHP, Ruby on Rails, Python)

1 MUI-lightweight APP frameworkQuick experience

Quickly get up and running with a mui app.

1. Download the Hello mui App

Click to download the packaged Hello mui mobile app to directly display the UI and capabilities of the mui control on your mobile phone;

2. Create a Hello mui Project

You can download Hbuilder from the https://www.dcloud.io, choose to create a new "mobile APP", and select "Hello MUI" Project template, create a project; then connect the phone to the computer through the data cable, click Run, you can experience the capabilities of MUI on your mobile phone.

 

3. mui help document

You can learn how to use the framework from the MUI help document http://dev.dcloud.net.cn/mui/ui.

 

 

 

 

3 Ionic development framework

Ionic: A lightweight mobile phone UI library featuring fast speed, modern interface, and beautiful appearance. In order to solve the slow running of some other UI libraries on mobile phones, it directly gave up IOS6 and Android4.1 to get a better user experience.

 

Ionic create APP | cainiao tutorials http://www.runoob.com/ionic/ionic-creat-app.html

 

 

4 Event listening in mobile appsIn the mobile APP, The DOM2 model is recommended for event binding. Replace the click event with a tap event. Event binding

In additionaddEventListener()Method To listen to events on a specific element, you can also use.on()Method to bind events of batch elements.

Event Cancellation

Useon()If you want to cancel the binding, you can useoff()Method.off()The method has different implementation logic based on different input parameters.

Event triggering

Usemui.trigger()The method can dynamically trigger events on specific DOM elements.

 

 

 

3 Image carousel (MUI) in mobile APP)
<! Doctype html> 

 

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.