摘要:
``` <!DOCTYPE html Document <! 渲染各个组件的容器 // 需求: 想把根(父)组件的数据data中的某个数据msg传递给子组件child a去使用({{数据}}) Vue.component("child a", { template: `<div 我是子组件 {{co 阅读全文
摘要:
``` <!DOCTYPE html Document <! 这个位置是组件的视图内容< 选项template com a child c parent a Vue.component("child a", { template: }); Vue.component("child b", { tem 阅读全文
摘要:
``` <!DOCTYPE html Document new Vue({ el: ' app', data: { }, // 选项 // 1. 定义 // 2. 组件选项(template/data/methods等(除了el)) // 3. 使用 自定义标签名 components: { // 阅读全文
摘要:
``` Document 首页 用户管理 权限管理 商品管理 ``` ![](https://img2018.cnblogs.com/blog/1490002/201905/1490002-20190... 阅读全文
摘要:
需要安装包: moment.js axios.js vue.js 1.把db.json数据复制到db.json数据里面,开启db.json服务器 2.把html代码复制到html里面 html内容 阅读全文
摘要:
``` <!DOCTYPE html Document // 两类+三步 // 全局 // 1. 定义 (组件名,组件选项所在对象) // 注意: 组件名命名, abc childA child a // 2. 写选项 // 注意: template 一个根元素 + data的值必须return{} 阅读全文
摘要:
``` <!DOCTYPE html Document // 封装 组件 // Vue.filter(); // Vue.directive(); // newVue Vue.component('span d', { template: ` <div <span {{count}}</span < 阅读全文
摘要:
``` Document {{msg}} ``` 阅读全文
摘要:
``` Document ``` 阅读全文
摘要:
1.把下面的数据放在 db.json文件里面 2.在db.json 同目录下 打开cmd,在命令窗口输入 json server watch db.json 开启服务器 以下是db.json 阅读全文