Layout ideas:
1, using the bottom of the nav to layout
1 <navclass= "Bar Bar-tab">2 <aclass= "Tab-item Active"href= "#home_article"Data-target= "article">3 <spanclass= "icon Icon-home"></span>4 <spanclass= "Tab-label">Home</span>5 </a>6 <aclass= "Tab-item"href= "#householdAcceptance_article"Data-target= "article">7 <spanclass= "icon icon-list"></span>8 <spanclass= "Tab-label">Sub-household acceptance</span>9 </a>Ten <aclass= "Tab-item"href= "#officialDeliver_article"Data-target= "article"> One <spanclass= "icon Icon-stop"></span> A <spanclass= "Tab-label">Formal delivery</span> - </a> - <aclass= "Tab-item"href= "#dailyReception_article"Data-target= "article"> the <spanclass= "icon Icon-pages"></span> - <spanclass= "Tab-label">Daily reception</span> - </a> - <aclass= "Tab-item"href= "#statisticsAnalysis_article"Data-target= "article"> + <spanclass= "icon Icon-pages"></span> - <spanclass= "Tab-label">Statistics and analysis</span> + </a> A </nav>
Bottom Navigation
2, the content of the switch (that is, Data-target) with the object is article(see the value of the Data-target property in the previous step)
It is important to note that article is not a return (back) method, only the section. Research the layout of the next AppStore, the first page of the switch is to take the bottom nav switch, and there is no top back, because there is no need for it.
3, the previous step in the first page content article switch: is called when the program is enabled to implement the A.launch () method---because the article file is placed in the Html\ directory.
1$(function () {2 A.launch ({3Basepagepath: ' html/',4Showpageloading:false,5Isautorender:true6 });7 8 //home Page Load Home content9A.router.showarticle ("html/home_article.html");Ten});
Application Startup
Roughly on these 3 steps, there are several points to note:
1, from the official API description: " in order to effectively manage all the section,agile set a container with ID #section_container, all sections are located under this container." "
Otherwise, you may see a "#undefined" issue after the URL when you visit the homepage .
Find out the source of agile, can explain the above description:
The _initindex method in the A.router object:
"Agile Framework (i)" Home page layout