Today is an attempt to use the Onsen UI for mobile development. found that their English can't keep up, Ah, here to record some of the more commonly used things, convenient for later use.
1. How to open a new page
<ons-navigator var= "Mynavigator" ></ons-navigator><script>var options = {animation: ' Slide ',//What Animation to use Ontransitionend:function () {}//called when finishing Transition animation};mynavigator.pushpage ("page 2.html ", options);</script>
Simple notation:
<ons-navigator var= "Mynavigator" ></ons-navigator><script>mynavigator.pushpage ("page2.html", { Animation: ' Slide '});</script>
2. Pop-up box use and style
Use alert directly, just like your current phone theme pop-up box style
3. How to return the new page after the popup
On the new page that pops up, like the left side of top or the right to add
<ons-back-button> back</ons-back-button>
Notes for using the Onsen UI in mobile development