摘要: call call是一个方法,是函数的方法,call可以调用函数 function fun () { console.log(this) } fun.call() call可以改变函数中this的指向 let cat = { name: '喵喵' } let dog = { name: '旺旺', 阅读全文
posted @ 2021-08-21 10:04 久不见冰蓝 阅读(47) 评论(0) 推荐(0)
摘要: 1.transition transition直译为过渡,是一个简写属性,用于设置四个过渡属性 transition-property 规定应用过渡属性的css属性名称。例:opacity transition-duration 规定完整过渡所需要花费的时间,以秒或毫秒记。例:3s transiti 阅读全文
posted @ 2021-08-06 09:28 久不见冰蓝 阅读(148) 评论(0) 推荐(0)
摘要: 什么是表驱动编程?举个例子 function toChinese(num){ if(num == 1){ return '一' } else if(num == 2){ return '二' } else if(num == 2){ return '三' } } 表驱动方法写 function to 阅读全文
posted @ 2021-08-05 17:22 久不见冰蓝 阅读(71) 评论(0) 推荐(0)
摘要: 父组件代码,key传入不同的值会使组件重新渲染,不会留下之前填写过的内容 <template> <el-form-item> <el-button type="primary" @click="addOrUpdateHandle()">新增</el-button> </el-form-item> < 阅读全文
posted @ 2021-08-04 09:11 久不见冰蓝 阅读(2338) 评论(0) 推荐(0)
摘要: router/index.js中 vue-cli2中还是使用的import Vue from 'vue',Vue.use也没有问题 import Vue from 'vue' import Router from 'vue-router' import HelloWorld from '@/comp 阅读全文
posted @ 2021-07-21 15:14 久不见冰蓝 阅读(3000) 评论(0) 推荐(0)