上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: 问题描述: 现有两个文件: profile.js test.html 运行结果: test.html:9 Uncaught SyntaxError: Unexpected token { 问题解答: 在HTML文件中不能使用export,import,需要在webpack构建项目中使用,并且只作用于 阅读全文
posted @ 2018-12-13 10:56 寒爵 阅读(2132) 评论(0) 推荐(1)
摘要: 常用命令 创建项目:yarn init 安装依赖包:yarn == yarn install 添加依赖包:yarn add 配置淘宝镜像:yarn config set registry "https://registry.npm.taobao.org" Yarn命令列表 来源: http://do 阅读全文
posted @ 2018-12-12 15:49 寒爵 阅读(11952) 评论(0) 推荐(0)
摘要: npm yarn 说明 npm init yarn init npm install yarn install/yarn npm install -g <package> yarn global add <package> 全局安装依赖 npm install --save <package> 或者 阅读全文
posted @ 2018-12-12 15:47 寒爵 阅读(941) 评论(0) 推荐(0)
摘要: 一、Nginx下载与安装 1、nginx官方下载地址:http://nginx.org/ 2、下载完后将压缩包解压即可 3、nginx配置文件为根目录下conf\nginx.conf 二、Nginx常用命令说明 cmd进入nginx安装目录 三、Nginx配置文件详解 阅读全文
posted @ 2018-12-12 15:22 寒爵 阅读(9765) 评论(1) 推荐(3)
摘要: 问题描述: main.js 为什么已经定义了 components: { App } ,还需要 template: '<App/>' ? 问题解答: el: '#app' :是指向 index.html 的<div id="app"></div>元素,该元素作为vue的挂载点 components  阅读全文
posted @ 2018-12-12 13:52 寒爵 阅读(274) 评论(0) 推荐(0)
摘要: 列表渲染 {{ item.message }} {{ parentMessage }} - {{ index }} - {{ item.message }} ... 阅读全文
posted @ 2018-12-11 14:26 寒爵 阅读(300) 评论(0) 推荐(0)
摘要: 条件渲染 A B C Not A/B/C Hello Vue. 阅读全文
posted @ 2018-12-11 14:01 寒爵 阅读(269) 评论(0) 推荐(0)
摘要: 结果: 阅读全文
posted @ 2018-12-11 11:28 寒爵 阅读(180) 评论(0) 推荐(0)
摘要: 结果: 阅读全文
posted @ 2018-12-11 10:57 寒爵 阅读(307) 评论(0) 推荐(0)
摘要: vue实例创建 {{ message }} 阅读全文
posted @ 2018-12-11 10:54 寒爵 阅读(372) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页