06 2020 档案

摘要:数组常用方法: 数组解构赋值应用 // 交换变量 [a, b] = [b, a] [o.a, o.b] = [o.b, o.a] // 生成剩余数组 const [a, ...rest] = [...'asdf'] // a:'a',rest: ["s", "d", "f"] 数组浅拷贝 const 阅读全文
posted @ 2020-06-24 17:12 rachelch 编辑
摘要:一、引入微信js // index.html <script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> 二、封装wxshare.js // assets => js => 新建 wxshare.js export fu 阅读全文
posted @ 2020-06-18 11:43 rachelch 阅读(451) 评论(0) 推荐(0) 编辑
摘要:ios中,用 swiper 实现轮播图 swiper圆角,图片滑动的时候会先变成直角然后变成圆角(vant) 解决方法: 在swiper的父盒子上加overflow:hidden 和 transform: translateY(0); <div class="my-swipe-box"> <van- 阅读全文
posted @ 2020-06-15 13:36 rachelch 编辑
摘要:最近遇到这样一个问题,在HTML5手机页面中,直接给<img>标签设置宽高,即便图片路径正常,在IOS真机下也是无法显示的,而在安卓以及浏览器的模拟真机上都是正常显示的,这是为什么呢? <img src="xxxx.png" /> img{ width: 100px; height: 100px; 阅读全文
posted @ 2020-06-15 10:04 rachelch 编辑
摘要:alert组件: <template> <div class="alertBox" :value="value" v-if="visible" @click="close_click" style="z-index: 999;"> <div class="alertMain" @click.stop 阅读全文
posted @ 2020-06-11 16:33 rachelch 编辑

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