简体   繁体   English

如果我使用$ .mobile.changePage(),页面无法正确显示

[英]Page not showing properly if i use $.mobile.changePage()

I have many html code like this 我有很多这样的html代码

<div data-role="page" id="page1">       
</div>

<div data-role="page" id="page2">       
</div>

In a single html i have many pages. 在一个html中,我有很多页面。 Now if i go from one page1 to page2 like this 现在,如果我像这样从第1页转到第2页

$.mobile.changePage("#page2", {transition : "slide"});

Then the browser shows me page2 then it shows me page1 for 3 seconds and then again it successfully come back to page2. 然后浏览器向我显示page2,然后向我显示page1 3秒钟,然后再次成功返回到page2。

How to correct this issue? 如何解决这个问题?

Transitions in JQM 1.0.x were quite rough on some devices most notably android 1.x, 2.x . 在某些设备上,尤其是android 1.x,2.x上,JQM 1.0.x的过渡相当困难。 They have been much approved in JQM version 1.1-RC1. 它们已在JQM版本1.1-RC1中得到了广泛认可。 Try updating to JQM 1.1-RC1. 尝试更新到JQM 1.1-RC1。

UPDATE: Please note that if the browser such as the one android uses cannot handle 3D transforms it will simply fallback to a fade transition. 更新:请注意,如果像Android那样的浏览器无法处理3D转换,它将仅回退到淡入淡出过渡。

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

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