Vue
【vue 报错】The template root requires exactly one element
【vue 报错】The template root requires exactly one element
[eslint-plugin-vue] [vue/valid-template-root] The template root requires exactly one element.原因:因为vue的模版中只有能一个根节点,所以在template中插入第二个元素就会报错将div注释码取消;报错将取消;...
所有评论(0)