随笔分类 -  vue-基础day03

摘要:``` <!DOCTYPE html Document new Vue({ el: ' app', data: { }, // 选项 // 1. 定义 // 2. 组件选项(template/data/methods等(除了el)) // 3. 使用 自定义标签名 components: { // 阅读全文
posted @ 2019-05-28 22:38 193557749 阅读(148) 评论(0) 推荐(0)
摘要:``` Document 首页 用户管理 权限管理 商品管理 ``` ![](https://img2018.cnblogs.com/blog/1490002/201905/1490002-20190... 阅读全文
posted @ 2019-05-28 22:33 193557749 阅读(181) 评论(0) 推荐(0)
摘要:需要安装包: moment.js axios.js vue.js 1.把db.json数据复制到db.json数据里面,开启db.json服务器 2.把html代码复制到html里面 html内容 阅读全文
posted @ 2019-05-28 22:28 193557749 阅读(1091) 评论(0) 推荐(0)
摘要:``` <!DOCTYPE html Document // 两类+三步 // 全局 // 1. 定义 (组件名,组件选项所在对象) // 注意: 组件名命名, abc childA child a // 2. 写选项 // 注意: template 一个根元素 + data的值必须return{} 阅读全文
posted @ 2019-05-28 22:24 193557749 阅读(186) 评论(0) 推荐(0)
摘要:``` <!DOCTYPE html Document // 封装 组件 // Vue.filter(); // Vue.directive(); // newVue Vue.component('span d', { template: ` <div <span {{count}}</span < 阅读全文
posted @ 2019-05-28 22:23 193557749 阅读(104) 评论(0) 推荐(0)
摘要:``` Document {{msg}} ``` 阅读全文
posted @ 2019-05-28 22:18 193557749 阅读(224) 评论(0) 推荐(0)
摘要:``` Document ``` 阅读全文
posted @ 2019-05-28 22:16 193557749 阅读(426) 评论(0) 推荐(0)
摘要:1.把下面的数据放在 db.json文件里面 2.在db.json 同目录下 打开cmd,在命令窗口输入 json server watch db.json 开启服务器 以下是db.json 阅读全文
posted @ 2019-05-28 22:09 193557749 阅读(203) 评论(0) 推荐(0)
摘要:``` Document methods中的方法 {{fn1()}} {{fn1()}} {{fn1()}} computed中的方法 {{fn2}} {{fn2}} {{fn2}} ... 阅读全文
posted @ 2019-05-28 22:06 193557749 阅读(241) 评论(0) 推荐(0)
摘要:``` Document {{b}} {{d}} ``` ![](https://img2018.cnblogs.com/blog/1490002/201905/1490002-20190528220314228-716623907.jpg) 阅读全文
posted @ 2019-05-28 22:03 193557749 阅读(164) 评论(0) 推荐(0)