vue踩过的那些坑 Right-hand side of 'instanceof' is not an object

vue踩过的那些坑 Right-hand side of 'instanceof' is not an object

出现这种时就该去检查写的script里面的东西的格式是否正确喽(比如说哪里多了或者少了逗号什么的),以下是我遇到的一种情况:

vue踩过的那些坑 Right-hand side of 'instanceof' is not an object

props的格式错了,应是以下的这个,props可以是数组的形式也可以是对象形式

vue踩过的那些坑 Right-hand side of 'instanceof' is not an object