Jquery mobile 重定向到主页
是否可以使用mobileinit功能将用户从子页面即index.htm#子页面“重定向”到index.htm#主页Jquery mobile 重定向到主页,jquery-mobile,Jquery Mobile,是否可以使用mobileinit功能将用户从子页面即index.htm#子页面“重定向”到index.htm#主页 $(document).bind("mobileinit", function(){ $.mobile.changePage("/index.htm#home"); }); 为什么不呢 $(document).bind("mobileinit", function(){ document.location.href="whereever"; }); 或者只是 &
$(document).bind("mobileinit", function(){
$.mobile.changePage("/index.htm#home");
});
为什么不呢
$(document).bind("mobileinit", function(){
document.location.href="whereever";
});
或者只是
<script>
document.location.href="whereever";
</script>
document.location.href=“wherever”;
或者甚至使用metatag?为什么不呢
$(document).bind("mobileinit", function(){
document.location.href="whereever";
});
或者只是
<script>
document.location.href="whereever";
</script>
document.location.href=“wherever”;
甚至使用metatag?是的。如果使用重定向,非ajax网页必须重新加载超过100KB的JQuery JS。。。。
我仍然不想这样做,但在某些情况下必须通过重新加载页面来完成(以小心地处理PHP会话)。是的。如果使用重定向,非ajax网页必须重新加载超过100KB的JQuery JS。。。。 我仍然不想这样做,但在某些情况下,必须通过重新加载页面来完成(小心地处理PHP会话) 这个对我有用
这一个对我很有用。使用HTTP302的服务器端重定向会好得多-目前加载了整个页面,加载了100KB的jquery内容。想想看,使用HTTP302进行服务器端重定向会好得多——目前整个页面都被加载了,而jquery的内容被加载了100KB。想想看