<!DOCTYPE HTML >
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src="jquery.js">
</script>
<script src="underscore.js">
</script>
<script src="backbone.js">
</script>
<script>
var View = Backbone.View.extend({
el: '#listen_to_box',
events: {
'click [type="checkbox"]':'clicked',
},
clicked : function(event ) {
console.log("events handler for "+ this.el.outerHTML);
}
});
</script>
<div id="listen_to_box">
<input type="checkbox" />
</div>
</body>
</html>
单击复选框时未调用单击的函数,请帮助我为复选框上的单击事件关联侦听器函数。谢谢