myNavigator
目前有三頁:bottom.html
,middle.html
和top.html
。我想要高於top.html
,因此我打電話給pushPage
。交換或洗牌頁面
但這裏有兩個問題:
- 堆棧看起來像這樣
bottom.html
,middle.html
,top.html
,bottom.html
。 - 新的
bottom.html
已完全重建,因此在重建相同內容時浪費了大量的 資源。
我試過resetToPage
函數,但問題仍然是一樣的。
myNavigator
目前有三頁:bottom.html
,middle.html
和top.html
。我想要高於top.html
,因此我打電話給pushPage
。交換或洗牌頁面
但這裏有兩個問題:
bottom.html
,middle.html
,top.html
,bottom.html
。bottom.html
已完全重建,因此在重建相同內容時浪費了大量的 資源。我試過resetToPage
函數,但問題仍然是一樣的。
既然你已經標記了溫泉用戶界面2,那麼你可以使用bringPageTop
方法,這似乎是做你想做的。^_^
所以你可以做任何的
myNavigator.bringPageTop(0)
myNavigator.bringPageTop('bottom.html')
祝您的應用程序!
謝謝我使用onsenui - v1.3.15。我猜它更接近UI2的出現。讓我試着升級。 – enRaiser
哦,對不起 - 我看到一個標籤'onsen-ui2',所以我以爲你在使用它。如果您升級它具有您想要的確切功能。 –
你使用的是Onsen UI嗎?你能更具體=)難以回答 –