简体   繁体   English

如何打开两页

[英]How to open two Pages

I use the following splitview for my mobile application. 我将以下splitview用于我的移动应用程序。

asyraf splitview Asyraf Splitview

For example my first left content in the tablet view is a button. 例如,我在平板电脑视图中的第一个左侧内容是一个按钮。 when I click the button it loads a new page with a second button and a back button to the first page. 当我单击该按钮时,它将在新页面上加载第二个按钮和一个后退按钮。 When I click on the second button it loads a right content. 当我单击第二个按钮时,它将加载正确的内容。 When I click the back button it loads the first page left content but the right content is the same. 当我单击“后退”按钮时,它将加载第一页的左侧内容,但右侧内容是相同的。 How can I on click the back button load a new left content and a new right content at the same time? 如何单击“后退”按钮同时加载新的左侧内容和新的右侧内容?

Attention: The right content call need a href="rightPage" and data-panel="main" 注意:正确的内容调用需要href="rightPage"data-panel="main"

将以下内容附加到按钮的click()事件:

location.hash = "pagehash";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM