我们创建一个项目,这个项目我们细说Vue. 一.如何在项目中添加模块 我们通过npm 进行 安装 模块. 首先我们通过cmd.exe cd进入你的项目根目录,必须存在package.json文件,安装完之后就自动引入了. 如何在项目中添加模块呢?我们找到main.js // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.…