首页 > 代码库 > Backbone?View中的events...click事件失效

Backbone?View中的events...click事件失效

 

 

    <div id="container">        <input type="button" id="test_click" value="测试" />    </div>        var View = Backbone.View.extend({            //el: ‘#container‘,//注释了就不可以了...            template: _.template($("#item-template").html()),            events: {                ‘click #test_click‘: ‘chose_page‘            },            chose_page: function () {                alert("chose_page");            },        });

 

Backbone?View中的events...click事件失效