随笔分类 -  Vue.js

摘要:https://blog.csdn.net/qq_33769914/article/details/81738278 https://blog.csdn.net/m0_37972557/article/details/81072773 用jsx写vue组件,怎样监听.sync修饰符的事件? http 阅读全文
posted @ 2018-11-29 22:38 永醉雨辰 阅读(361) 评论(0) 推荐(0) 编辑
摘要:vue1 组件数据传递: √1. 子组件就想获取父组件data 在调用子组件: 子组件之内: 2. 父级获取子级数据 *子组件把自己的数据,发送到父级 vm.$dispatch(事件名,数据) 子级向父级发送数据vm.$broadcast(事件名,数据) 父级向子级广播数据 配合: event:{} 阅读全文
posted @ 2018-10-14 22:14 永醉雨辰 阅读(151) 评论(0) 推荐(0) 编辑
摘要:v-textv-forv-html 指令: 扩展html语法 自定义指令:1. 自定义属性指令: 指令名称: v-red -> red * 注意: 必须以 v-开头(定义时去掉v-) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF 阅读全文
posted @ 2018-10-07 12:49 永醉雨辰 阅读(351) 评论(0) 推荐(0) 编辑
摘要:过滤器: vue1.0 提供过滤器: 系统就自带很多过滤 capitalize uppercase currency json.... {{msg | currency}}{{msg | json}}....limitByfilterBy.....一些简单功能,自己通过js实现 debounce 配 阅读全文
posted @ 2018-10-07 11:49 永醉雨辰 阅读(180) 评论(0) 推荐(0) 编辑
摘要:class和style: :class="" v-bind:class="" :style="" v-bind:style="" :class="[red]" red是数据 :class="[red,b,c,d]" :class="{red:a, blue:false}" :class="json" 阅读全文
posted @ 2018-10-05 15:44 永醉雨辰 阅读(150) 评论(0) 推荐(0) 编辑
摘要:vue.js https://vuejs.org/ 基础: http://cn.vuejs.org/v2/guide/installation.html 1.安装需要利用npm包管理器,所以首先安装node.js https://nodejs.org/en/download/ 安装好后,打开cmd面 阅读全文
posted @ 2018-08-15 21:45 永醉雨辰 阅读(158) 评论(0) 推荐(0) 编辑
摘要:转载 http://blog.csdn.net/github_26672553/article/details/54630943 必须引入一个库:vue-resource 1.获取普通文本数据 比如:a.txt: welcomet to vue!!! <!DOCTYPE html> <html> < 阅读全文
posted @ 2017-08-07 21:11 永醉雨辰 阅读(871) 评论(0) 推荐(0) 编辑
摘要:报错一: Unknown custom element: <custom-select> - did you register the component correctly? For recursive components, make sure to provide the "name" opt 阅读全文
posted @ 2017-07-30 18:42 永醉雨辰 阅读(15143) 评论(0) 推荐(0) 编辑
摘要:首先利用脚手架vue cli搭建vue环境 引入 vue 然后参照官网 (https://cn.vuejs.org/v2/guide/) 做demo js 阅读全文
posted @ 2017-06-24 07:29 永醉雨辰 阅读(214) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示