♫【Backbone】this

Backbone.js Event Binding

MyView = Backbone.View.extend({

    events: {

        'click .item': 'handleClick'

    },



    handleClick: function(e) {

        this; // The view instance

        e.target; // The element that was clicked 

        e.currentTarget; // The element that was bound by the click event

    }

});

 

你可能感兴趣的:(backbone)