qq286735628
V2EX  ›  HTML

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

  •  
  •   qq286735628 ·
    qq286735628 · Jul 30, 2012 · 4121 views
    This topic created in 5036 days ago, the information mentioned may be changed or developed.
    manifest代码

    FALLBACK:
    online.html offline.html


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

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

    是FALLBACK对Ajax请求无效吗?在网上搜索过相关信息,但都没找到有用的资料。
    1 replies    1970-01-01 08:00:00 +08:00
    qq286735628
        1
    qq286735628  
    OP
       Jul 30, 2012
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1263 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 106ms · UTC 23:39 · PVG 07:39 · LAX 16:39 · JFK 19:39
    ♥ Do have faith in what you're doing.