大飞_dafei

导航

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 49 下一页

2020年5月2日 #

vue 插槽slot _fei

摘要: 具名插槽、作用域插槽、理解编译作用域 01)插槽 <div id="app"> <children_fei></children_fei> <children_fei><span slot="center">父_中间</span></children_fei><!-- 具名插槽 --> <child 阅读全文

posted @ 2020-05-02 23:53 大飞_dafei 阅读(99) 评论(0) 推荐(0) 编辑

vue 父子组件之间访问 this.$refs 和 this.$parent _fei

摘要: 01) vue 父组件访问子组件 this.$refs <div id="app"> {{ message }} <button value="点击" @click="p_click">点击获取子组件</button> <children_fei ref="children_ref"> </chil 阅读全文

posted @ 2020-05-02 18:39 大飞_dafei 阅读(1142) 评论(0) 推荐(0) 编辑

vue组件之间传值(02)__子组件传值父组件 emit _fei

摘要: vue 子组件传值父组件 emit <div id="app"> {{message}} <children_fei @item_click="parent_function"></children_fei> </div> <template id="children_foo"> <!-- 子组件 阅读全文

posted @ 2020-05-02 00:48 大飞_dafei 阅读(157) 评论(0) 推荐(0) 编辑

2020年5月1日 #

vue组件之间传值(01)__父组件传值子组件 props _fei

摘要: vue 父组件传值子组件(父传子) 使用prop属性,(借助v-bind绑定) <div id="app"> {{ message }} {{ books }} <children_fei :children_message="message" :children_books="books"></c 阅读全文

posted @ 2020-05-01 23:48 大飞_dafei 阅读(207) 评论(0) 推荐(0) 编辑

高阶函数 filter map reduce _fei

摘要: 高阶函数 filter map reduce // 高阶函数 filter map reduce 用es6语法写demo // 过滤小于20的值,返回布尔值 true 或者 false // 循环数组中的每一个元素 //接受一个函数作为参数,这个函数作为一个累加器,从左到右遍历整个类型数组,最后返回 阅读全文

posted @ 2020-05-01 17:50 大飞_dafei 阅读(102) 评论(0) 推荐(0) 编辑

2020年4月29日 #

$router 和 $route 区别 _fei

摘要: $router 和 $route 区别 $router 为 VueRouter 实例,想要导航到不同URL,则使用 $router.push({path:'foo',query:{id:'123',name:'大飞'}}) $route 为当前router跳转对象,里面可以获取到name、path、 阅读全文

posted @ 2020-04-29 21:33 大飞_dafei 阅读(119) 评论(0) 推荐(0) 编辑

2020年1月1日 #

windows7 中 AnyDesk 关闭开启自动启动 _fei

摘要: windows7 关闭 AnyDesk 关闭开启自动启动 01) 在键盘上按下 windows + R 键,打开运行窗口,并输入 msconfig 然后回车确认, 02) 找到启动选项,把 AnyDesk 前面的√取消掉 阅读全文

posted @ 2020-01-01 18:24 大飞_dafei 阅读(518) 评论(0) 推荐(0) 编辑

2019年12月31日 #

vue route 简单demo _fei

摘要: 01) main.js 文件中引入 router.js 文件路由内容 import Vue from 'vue' import App from './App.vue' import router from './router' Vue.config.productionTip = false; n 阅读全文

posted @ 2019-12-31 23:16 大飞_dafei 阅读(305) 评论(0) 推荐(0) 编辑

2019年12月29日 #

vue2.0 入口文件 _fei

摘要: vue 入口文件简介 App.vue <template> <div id="app"> <img alt="Vue logo" src="./assets/logo.png"> <!--<HelloWorld msg="Welcome to Your Vue.js App"/>--> <aaaa 阅读全文

posted @ 2019-12-29 06:52 大飞_dafei 阅读(236) 评论(0) 推荐(0) 编辑

2019年12月23日 #

vue 和 webstorm(01) 之 基本入门 _fei

摘要: vue 和 webstorm(01) 01) phpstorm 配置npm启动vue 02) 侧边栏显示npm view--> Tool windwos -->npm 如果这里没有,那么使用下面方法, 在项目的 package.json 文件上右键,选择 show npm script ,现在在vi 阅读全文

posted @ 2019-12-23 17:21 大飞_dafei 阅读(307) 评论(0) 推荐(0) 编辑

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 49 下一页