なぜエラーが発生するのですか?elが不足しています-ありがとう
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js"></script>
<script type ="text/javascript">
var SimpleView = Backbone.View.extend({
tagName: 'li',
id: 'todo-id',
className: 'todo-class',
render: function() {
var htmls = '<h3>jhjljlkjkljkljkljkljkjkjj</h3>';
//this.$el.html(htmls);
$(this.el).html(htmls);
}
});
var simpleView = new SimpleView();
simpleView.render();
//console.log(simpleView.el);
</script>