Article Introduction: This article mainly looks at the dialog components in the jquery mobile system. |
This article mainly looks at the dialog components in the jquery mobile system, we use the "ask answer" approach to the preliminary understanding:
1. How to Set Alert dialog?
Example:
<!--a start--> <a href= "#alert-dialog" > How to Set Alert Dialog</a> <!--a end--> <!--Dialog Co Ntainer start--> <div data-role= "dialog" id= "Alert-dialog" > <!--header part start--> <div Data-role= "header" >
Icon:
Description
1, to the container set data-role= "dialog"
2, click on the link specified href can be the ID value
2, how to set up confirm dialog?
Take the link button for example:
<!--a start--> <a href= "#confirm-dialog" > How to Set Confirm Dialog</a> <!--a end--> <!--dial OG container start--> <div data-role= "dialog" id= "Confirm-dialog" > <!--header part start--> <div Data-role= "header" >
Icon:
Description
1, to the container set data-role= "dialog"
2, click the link a specified href can be the ID value (main band #)
3, data-rel= "Back" can be similar to rollback (History.back ())
Demo