私はBackboneに不慣れで、いくつかの例を実行しようとしていますが、これに固執しています。私は以下のBackBoneビューを持っています:
CommentBoxView = Backbone.View.extend({
    initialize: function () {
        this.render();
    },
    render: function () {
        var template = _.template( $("#comment_box_template").html(), {} );
        this.el.html(template);
    },
    events: {
        "keypress textarea": "doKeyPress"
    },
    doKeyPress: function (event) {
        console.log(event);
    }
});
すべて正常に実行されていますが、交換した場合
this.el.html(template);
これとともに:
this.el = $(template).replaceAll(this.el);
キープレスイベントはまったく発生しません。なぜそれが起こったのか、そしてこのコードを機能させる方法を誰かに説明してもらえますか?どうもありがとうございました。