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>