会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
三水儿
博客园
首页
新随笔
联系
管理
订阅
12 2020 档案
关于uni-app的路由跳转的两种方式
摘要: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
三水儿
阅读(7369)
评论(0)
推荐(0)
选择器的权重比&运算符的优先级
摘要:一、选择器的权重比 !important > 内联样式 > ID选择器 > 类选择器 > 标签/伪类/属性选择器 > 伪对象 > 通配符 > 继承 内联样式:style=“” ID选择器: #id 类选择器: .class 标签: p 通配符: *{} !important 属性不能被继承,总是以同
阅读全文
posted @
2020-12-16 18:16
三水儿
阅读(319)
评论(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
三水儿
阅读(643)
评论(0)
推荐(0)
语法
摘要:1.过滤器 全局: Vue.filter('过滤器名称',function(参数){}) 私有: filter: { 过滤器名称: function (参数) { } } 调用过滤器: {{参数|过滤器名称}} 注: 1. 当私有和全局两个名称相同的过滤器时,进行就近原则进行调用。 2. 一个表达式
阅读全文
posted @
2020-12-09 18:29
三水儿
阅读(47)
评论(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
三水儿
阅读(513)
评论(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
三水儿
阅读(1428)
评论(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
三水儿
阅读(196)
评论(0)
推荐(0)
公告