写Vue.js实现数据绑定,出现如下错误:

[Vue warn]: Error in render: "TypeError: xxx is null"   (found in <Root>)

 

解决方法:

添加一个v-if判断:

[Vue warn]: Error in render: "TypeError: xxx is null"   (found in <Root>)

 

相关文章: