vue常见报错

emitted value instead of an instance of error,error compiling template,component template should contain exactly one root element.(发出值而不是错误实例、错误编译模板、组件模板应该恰好包含一个根元素。)

template模板下只能包含一个大的根元素,里面放多少都行,但template下只能包含一个元素。

猜你喜欢

转载自blog.csdn.net/qq_41619567/article/details/84388074
今日推荐