摘要: 1.查询ip地址 win+R打开cmd 窗口 输入ipconfig 找到IPV4地址 192.168.x.xxx 2.在vue项目config文件夹中的index.js,将localhost换为ipv4地址 3.重新编译项目,命令行运行npm run dev命令开启服务 4.电脑或手机端浏览器地址栏 阅读全文
posted @ 2018-11-01 12:05 零度从容 阅读(2274) 评论(0) 推荐(0) 编辑
摘要: vue-router mode模式有两种 hash和history。 1.hash —— 即地址栏 URL 中的 # 符号。比如这个 URL:http://www.abc.com/#/hello,hash 的值为 #/hello。它的特点在于:hash 虽然出现在 URL 中,但不会被包括在 HTT 阅读全文
posted @ 2018-11-01 11:58 零度从容 阅读(1162) 评论(0) 推荐(0) 编辑