随笔分类 -  实习时写的

摘要:1.navigator 标签 <navigator url="demo"> //跳转地址 <view class="xixi">标签跳转</view> </navigator> 2.通过@tap时间绑定方法 <view class="menu-item" @tap="toDemo"> <image 阅读全文
posted @ 2020-12-30 16:16 三水儿 阅读(7353) 评论(0) 推荐(0) 编辑
摘要:一、选择器的权重比 !important > 内联样式 > ID选择器 > 类选择器 > 标签/伪类/属性选择器 > 伪对象 > 通配符 > 继承 内联样式:style=“” ID选择器: #id 类选择器: .class 标签: p 通配符: *{} !important 属性不能被继承,总是以同 阅读全文
posted @ 2020-12-16 18:16 三水儿 阅读(315) 评论(0) 推荐(0) 编辑
摘要:兄弟组件传参的方式: 1.子传父,父传子 2.vuex 3.eventBus 一、通过父亲进行传递 父组件 <template> <div class="box2"> <div class="bro"> <brother :messagebro="message1" @broevent="messa 阅读全文
posted @ 2020-12-15 15:19 三水儿 阅读(636) 评论(0) 推荐(0) 编辑
摘要:1.过滤器 全局: Vue.filter('过滤器名称',function(参数){}) 私有: filter: { 过滤器名称: function (参数) { } } 调用过滤器: {{参数|过滤器名称}} 注: 1. 当私有和全局两个名称相同的过滤器时,进行就近原则进行调用。 2. 一个表达式 阅读全文
posted @ 2020-12-09 18:29 三水儿 阅读(46) 评论(0) 推荐(0) 编辑
摘要:路由跳转方式:this.$router.push 路由传参方式:this.$route.query 页面1 <template> <div> <Button type="Primary" @click="() => {this.$router.push({path: '/demo',query: { 阅读全文
posted @ 2020-12-09 15:46 三水儿 阅读(509) 评论(0) 推荐(0) 编辑
摘要:父组件: <template> <div> <child-2 ref="child2"></child-2> <Button type="primary" @click="chua">调方法</Button> </div> </template> <script> import child2 fro 阅读全文
posted @ 2020-12-08 17:00 三水儿 阅读(1426) 评论(0) 推荐(0) 编辑
摘要:1.父传子 父组件: <template> <div class="box"> <child :fMessage="data2"></child> <Button type="primary" @click="chua">传值</Button> </div> </template> <script> 阅读全文
posted @ 2020-12-08 16:52 三水儿 阅读(194) 评论(0) 推荐(0) 编辑

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