Underscore rendering [object HTMLDivElement]

后端 未结 3 1397
旧时难觅i
旧时难觅i 2021-01-16 17:52

I have an underscore template that is appending the following text \"[object HTMLDivElement]\" , but it\'s supposed to append value that \"model.get(\'title

3条回答
  •  爱一瞬间的悲伤
    2021-01-16 18:42

    If it is from another view I use .html() or .outerHTML like this:

    otherview: view.render().$el.html()
    otherview: view.render().el.outerHTML
    

提交回复
热议问题