我有一个查看代码,代码内的渲染如下所示。
 render: function() {
  var $el = $(this.el);
  $el.html(this.template({diarysCollection: this.collection}));
  $("#updateStatusContent").charCount({
      css:'counter',
      cssWarning:'counter_warning',
      cssExceeded:'counter_exceeded',
      allowed:750,
      warning:50,
      counterText:text_characters_left + " "
  });
 .....
但是模板中存在的 html 元素updateStatusContent尚未准备好,因此 jquery charcount 不起作用。