I have issue with jquery mobile anchor. When I click on _blank link with some anchor I redirect to new page in new tab and navigate to anchor link. But when page is fully loaded page jump to the top of page
我有jquery移动锚的问题。当我点击带有一些锚点的_blank链接时,我会在新标签页中重定向到新页面并导航到锚点链接。但是当页面完全加载时,页面会跳转到页面顶部
<a href="http://www.my_site.com/some_page#reviews" rel="external" data-ajax="false">Click me!</a>
1 个解决方案
#1
0
Make sure you don't have any JS code in your jQuery Mobile Page Load
events.
确保您的jQuery Mobile Page Load事件中没有任何JS代码。
Check if you have any
检查你是否有
Move to Top of Page code in your
$( document ).ready()
function.移至$(document).ready()函数中的页面顶部代码。
Also, check this resource link for events that triggers when page is fully loaded
此外,请检查此资源链接,查看在页面完全加载时触发的事件
http://api.jquerymobile.com/category/events/
http://api.jquerymobile.com/category/events/
check this link out too, if it helps :
如果它有帮助,请检查此链接:
jQuery Mobile prevent scroll-to-top before page transition
jQuery Mobile在页面转换之前阻止滚动到顶部
Let me know if it helps.
如果有帮助,请告诉我。
#1
0
Make sure you don't have any JS code in your jQuery Mobile Page Load
events.
确保您的jQuery Mobile Page Load事件中没有任何JS代码。
Check if you have any
检查你是否有
Move to Top of Page code in your
$( document ).ready()
function.移至$(document).ready()函数中的页面顶部代码。
Also, check this resource link for events that triggers when page is fully loaded
此外,请检查此资源链接,查看在页面完全加载时触发的事件
http://api.jquerymobile.com/category/events/
http://api.jquerymobile.com/category/events/
check this link out too, if it helps :
如果它有帮助,请检查此链接:
jQuery Mobile prevent scroll-to-top before page transition
jQuery Mobile在页面转换之前阻止滚动到顶部
Let me know if it helps.
如果有帮助,请告诉我。