jquery mobile ajax navigation,jQueryMobile, Ajax Navigation, and MVC

博客作者在安装jQuery.Mobile.MVC NuGet包后发现,该包引入了旧版1.0.3的jQuery Mobile,而当前版本已经是1.1.0。由于jQuery Mobile的Ajax导航在某些情况下(如从移动页面到非移动页面)可能不工作,因此在默认设置中禁用了Ajax导航。作者无法找到具体的问题文档和相关bug信息,论坛中提到的类似问题被认为是‘按设计’。文章讨论了为何在开箱即用时会关闭Ajax导航,并质疑这在jQuery Mobile 1.1.0中是否仍然适用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Following the MVC 4 article on new Mobile Features, I added the NuGet package jQuery.Mobile.MVC. That package installs, among other things, an older version 1.0.3b of jQuery Mobile (the current version is 1.1.0) and creates the following in _Layout.Mobile.cshtml:

$(document).bind("mobileinit", function ()

{

// As of Beta 2, jQuery Mobile's Ajax navigation does not work in all cases (e.g.,

// when navigating from a mobile to a non-mobile page), hence disabling it.

$.mobile.ajaxEnabled = false;

});

I can not find any documentation on what exactly is not working, whether there is a bug filed for it, and what the status of that bug might be. The closest non-ancient similar mention in the jQuery Mobile Forum is

http://forum.jquery.com/topic/ajax-navigation-system-is-causing-problems

In that case, the OP's issue was deemed "by design".

So...

Why might Ajax navigation be turned off out-of-the-box, and is that still a valid concern in jQuery Mobile 1.1.0?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值