V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.
iloveyou
V2EX  ›  Backbone.js

Backbone.js的兼容性怎么样?ie6能支持吗

  •  
  •   iloveyou · 2013-05-29 16:34:06 +08:00 · 11121 次点击
    这是一个创建于 3957 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    1970-01-01 08:00:00 +08:00
    meteor
        1
    meteor  
       2013-05-29 18:05:15 +08:00   ❤️ 1
    自己测试下吧.
    http://backbonejs.org/test/
    用backbone和jquery不是干同一样工作的.
    otakustay
        2
    otakustay  
       2013-05-29 18:11:23 +08:00   ❤️ 1
    backbone几乎和任何界面、DOM没有任何关系,就一系统基础框架管一堆普通的对象,兼容性上不是问题
    YuHong
        3
    YuHong  
       2013-05-29 23:24:23 +08:00 via iPhone   ❤️ 1
    router用到hashChange,history用到hashState,Backbone.localstorage 这些肯定不支持。
    dom的操作依赖jQuery没问题,Zepto不行。
    underscore的方法应该没问题。
    还真没在IE6上用过,用上backbone为啥还用考虑IE6?
    kangjia
        4
    kangjia  
       2013-05-30 00:15:22 +08:00   ❤️ 1
    IE6可以用。 router是使用的setInterval来监听的hash
    iloveyou
        5
    iloveyou  
    OP
       2013-05-30 07:44:26 +08:00
    @YuHong 我其实不是做单页程序,只是需要做个很复杂的js组件,我想用mvc的方式开发维护容易
    freestyle21
        6
    freestyle21  
       2014-03-04 14:34:13 +08:00
    @kangjia 正解。如果支持pushState绑定popstate事件;支持onhasChange绑定hashChange;最后不行就setInterval.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2733 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.