检查一下plugins中的inject是否为body,如果原来设置为head,那在js执行时是取不到id为app的dom的,这点困扰了我很久
在head中获取dom的时候外面套上window.onload = function (){//...};
确实中招了 谢啦
我的也报错
new App()