jquery mobile - 页面事件顺序 [英] Jquery mobile - page events order
本文介绍了jquery mobile - 页面事件顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从一个页面导航到另一个页面时触发的页面事件的顺序是什么?
What is the order of page events triggered when navigate from one page to another ?
推荐答案
我用多页模板查了一下,结果如下:
(从 A 导航到 B)
I checked it with multi page template and found the following result:
(Navigate from A to B)
page B---pagebeforecreate
page B---pagebeforecreate
页面 B---pagecreate
page B---pagecreate
页面 B---pageinit
page B---pageinit
page A---pagebeforehide
page A---pagebeforehide
page B---pagebeforeshow
page B---pagebeforeshow
page A---pageremove
page A---pageremove
page A---pagehide
page A---pagehide
page B---pageshow
page B---pageshow
这篇关于jquery mobile - 页面事件顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文