V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Dive into HTML5
http://diveintohtml5.org/
qq286735628
V2EX  ›  HTML

如何使用applicationCache的fallback得对ajax请求进行重定向

  •  
  •   qq286735628 ·
    qq286735628 · 2012-07-30 10:35:43 +08:00 · 3553 次点击
    这是一个创建于 4281 天前的主题,其中的信息可能已经有所发展或是发生改变。
    manifest代码

    FALLBACK:
    online.html offline.html


    上述代码让html在离线状态的时候,当请求online.html时候,返回offline.html

    但是实际情况是,在离线的时候,我在console中使用命令$.get('online.html'),查看网络状况,发现返回的依然是online.html并不是offline.html

    是FALLBACK对Ajax请求无效吗?在网上搜索过相关信息,但都没找到有用的资料。
    1 条回复    1970-01-01 08:00:00 +08:00
    qq286735628
        1
    qq286735628  
    OP
       2012-07-30 11:29:48 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2973 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:11 · PVG 19:11 · LAX 04:11 · JFK 07:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.