Object不支持属性或方法'bind' - Backbone.js

时间:2013-12-16 10:22:52

标签: backbone.js internet-explorer-8

我使用MVC在Backbone.js中构建了我的应用程序。一切都在Chrome / Firefox / IE 9及以上版本中运行良好,但在IE8及以下版本中运行良好: -

var userDetailView = backbone.View.extend({
    el: '#user-details',
    tagName: 'div',
    template: Handlebars.templates.UserDetails,
    model: userModel,

    initialize: function () {
        _.bindAll(this, "render");
        this.model.bind('change', this.render);
        return this;
    }
});

我收到如下错误: -

  

SCRIPT438:对象不支持属性或方法'bind'

有人可以帮忙吗?

0 个答案:

没有答案
相关问题