摘要:1.运行vue项目 项目根目录git Bash here npm run dev 为了能直接打开项目 配置项目package.json 添加--open 如下图: 2.坑:VUE初写小项目问题之命令行报错:Expected indentation of 4 spaces but found 6 想换
阅读全文
摘要:前提:电脑安装git node.js 一、右键Git Bash Here 二、$ vue init webpack element //新建一个element项目,element是文件夹名字 $ cd element/ //进入element项目 $ ls //查看列出目录下的文件, 三、安装依赖
阅读全文
摘要:<script> var vm = new Vue({ el: '#box', data: { token: "", head_pic: "", }, created: function () { var that = this that.token = sessionStorage.getItem
阅读全文