我之前也见过类似的一个东西,他是将那些html代码绑定在这些组件的属性上,大神你是这样的?
374046604 opened this issue · comments
不是的,没有操作html
是把属性绑定到字符串模板上,然后把模板传入vue编译挂载上去
每次属性变动都重新编译
大神 怎么把字符串模板传入vue的呢
new Vue({ name: id.toString(), template: _component.template, el: document.getElementById(id) })