component: () => import("@/views/User"),//导入组件的方法 要学会
这里是箭头函数,之前
hello = function(){ return "Hello world!" }
之后引入了箭头函数之后
hello = () =>"Hello World!";
最上边的代码的意思是在整个全局引入User这个vue文件并将其引入到component之中。
component: () => import("@/views/User"),//导入组件的方法 要学会
这里是箭头函数,之前
hello = function(){ return "Hello world!" }
之后引入了箭头函数之后
hello = () =>"Hello World!";
最上边的代码的意思是在整个全局引入User这个vue文件并将其引入到component之中。