摘要: .trapzoid { width: 40px; height: 100px; border: 50px solid blue; border-color: transparent transparent blue transparent; } 2.圆形:设置宽高相等、border-radius:5 阅读全文
posted @ 2020-04-13 15:38 天空003 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 实现 (5).add(3).minus(2) 功能:5+3-2=6 方法一 Number.prototype.add = function (number) { if (typeof number !== 'number') { throw new Error('请输入数字~'); } return 阅读全文
posted @ 2020-04-13 14:45 天空003 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1.子1传父,父再传给子2 2.通过vuex 3.eventBus(事件车) 接下来介绍如何使用eventBus实现兄弟组件传值 首先我的需求是这样的,页面上由top,right,bottom,left四个组件构成。需要将top中的值传到right中。 第一步:创建一个js文件,eventBus.j 阅读全文
posted @ 2020-04-13 11:08 天空003 阅读(5363) 评论(0) 推荐(0) 编辑