我想知道在构建Vuejs模板时如何最好地安排新行.我现有的代码无法正常工作,因为它 destruct 了JavaScript容器.Vue.js希望我将整个html放在一行中,这在我计划添加页脚内容时有些不切实际.
Vue.component('footer-component', {
template: "
<div id='footer'>
Footer Stuff
</div>"
})
new Vue({
el: 'footer'
})
我一直在try 用Vue寻找HTML模板的例子,但我很难找到它们.使用React时,我可以在多行代码中编写HTML.我该如何为Vuejs做同样的事情?