-1

私のポップオーバー モジュールでは、テンプレートが ajax ビューで読み込まれます。

function(app) {

  var Popover = app.module();

  Popover.Views.Default = Backbone.View.extend({
    template: "popover/template",

    initialize: function(options) {
      this.reference = options.reference;
      this.render();
    },

    beforeRender: function() {
      this.content = this.$el.find('.popover');
    }
  });

  // Required, return the module for AMD compliance.
  return Popover;
});

レンダリング:

<div>
    <div class="popover">content</div>
</div>

テンプレートには含まれているだけですが、

<div class="popover">content</div>

周囲のdivを削除するにはどうすればよいですか?

4

1 に答える 1