摘要: props 通过 v-bind 方法进行通信 通过 :newmsg 获取 msg 的值 > props 定义 newmsg > 子组件用 newmsg 就可以获得父级的 msg 了 default 与 require 一般不并用 default: 默认值 require:是否需要传值 单项数据流 通 阅读全文
posted @ 2018-07-30 19:36 Goff956 阅读(314) 评论(0) 推荐(0) 编辑
摘要: v-bind:class 可以简写成 :class 对象 :class = {} class 的值由 key 组成, 但是由value决定 数组 :class = [] class 是由数组中每一项对应的值决定 :style :type v-model 双向数据绑定 模拟 v-model 阅读全文
posted @ 2018-07-30 19:34 Goff956 阅读(64) 评论(0) 推荐(0) 编辑
摘要: v-if : 真正的渲染 v-show : 通过改变 css 样式 display 来实现是否显示 v-show 的性能好一些 v-on:keyup.enter (.enter键值修饰符) class id type style reayonly data-xxx :class={} class 的 阅读全文
posted @ 2018-07-30 18:47 Goff956 阅读(87) 评论(0) 推荐(0) 编辑
摘要: [toc] url 请求简图 ![image](http://img.hb.aicdn.com/d7723a814514bfc56bbddfccaf6afe90613f477111158-27Ivrv_fw658) DNS解析:IP地址每一次都不固定,所以不能用111.13.100.92这种方法 # 阅读全文
posted @ 2018-07-16 10:06 Goff956 阅读(97) 评论(0) 推荐(0) 编辑