Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
getCurrentPage() 和 getPages() 返回具有“名称”属性的页面对象。这与我的模板的页面 URL 相同(即 page2.html)。如何设置名称?
您可以使用属性“名称”。例如:
<ons-page name="myPage"> ... </ons-page>