会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
土匪7
上一页
1
2
3
4
5
6
7
8
9
···
39
下一页
左右联动筛选
摘要: 这样的效果。 结构:左边是scroll-view(为了实现滚动右边,左边切换激活状态), 右边是view. 点击左边,右边要滚动到相应的位置,这个效果怎么实现呢?A: 直接 pageScrollTo: mbLeftItemTap(idx) { if (this.leftActiveIdx != id
阅读全文
posted @ 2022-09-26 09:41 土匪7
阅读(33)
评论(0)
推荐(0)
编辑
vue 绑定样式,跟点击事件的顺序会影响
摘要: <view class="mfst-item" v-for="(item, idx) in majorArr" :key="mfsKey" :class="[sidx == idx ? 'section1Active' :'']" @tap.stop="section1Tap(item,idx)">
阅读全文
posted @ 2022-08-12 12:35 土匪7
阅读(24)
评论(0)
推荐(0)
编辑
浅拷贝,深拷贝
摘要: const numbers = [3, 6, 9]; const numbersCopy = Array.from(numbers); numbers numbersCopy; // => false 只拷贝了一层,这是单层浅拷贝 下面是深拷贝(多层数组拷贝) function recursiveC
阅读全文
posted @ 2022-06-15 15:54 土匪7
阅读(16)
评论(0)
推荐(0)
编辑
小程序数组部分setData
摘要: 点击事件 cellItemTap(e){ let outidx = e.currentTarget.dataset.outidx let idx = e.currentTarget.dataset.idx if(this.data.activeIdxs[outidx] != idx){ // 部分s
阅读全文
posted @ 2022-06-14 14:33 土匪7
阅读(35)
评论(0)
推荐(0)
编辑
小程序模糊效果,兼容安卓,iOS
摘要: /*安卓模糊*/ .wordBlur { filter: blur(4px); } /*iOS 模糊*/ .mcBlur { backdrop-filter: blur(3px); position: absolute; width: 100%; height: 100%; left: 0; top
阅读全文
posted @ 2022-06-06 18:09 土匪7
阅读(300)
评论(0)
推荐(0)
编辑
阅读真经5解析小程序
摘要: 托福app, 口语练习开发, 使用runtime实现多代理【完成】 修复bug:倒计时显示不对,因为小数向上取整了 筛选样式优化,修改视图层级结构 table点击事件和手势冲突 tableTap.cancelsTouchesInView = NO; AVPlayerItem音频慢速播放有回音 ite
阅读全文
posted @ 2022-03-29 10:56 土匪7
阅读(31)
评论(0)
推荐(0)
编辑
git报错:Failed to connect to github.com port 443: Operation timed o
摘要: https://juejin.cn/post/6844904193170341896
阅读全文
posted @ 2022-03-03 12:09 土匪7
阅读(13)
评论(0)
推荐(0)
编辑
tableview加tap手势,cell点击无效了
摘要: 需求:点击空白收起筛选table 我在view加了tap手势, 点击空白,确实可以收起下拉筛选了,但是点击大table的cell不能跳转了!!! `__weak typeof(self)weakSelf = self; UITapGestureRecognizer *tableTap = [[UIT
阅读全文
posted @ 2022-03-02 13:54 土匪7
阅读(126)
评论(0)
推荐(0)
编辑
单例使用多代理
摘要: 问题描述: tableview有很多cell, 其中有两个cell, 每个cell上有一条音频. 播放音频使用的单例,这个单例有代理方法,在两个cell上都设置代理,但是只有一个代理方法会调用 bug表现就是: 我点击开始播放第一个音频,进度条开始变化, 滑动tableview,上面的进度条不动了,
阅读全文
posted @ 2022-03-01 10:36 土匪7
阅读(65)
评论(0)
推荐(0)
编辑
设置UISlider的ThumbImage,图片非常模糊, 使用代码生成图片就OK了
摘要: 设置UISlider的ThumbImage,图片非常模糊, 使用代码生成图片就OK了 这样设置图片非常模糊: [self.slider setThumbImage:[UIImage imageNamed:@"playDot"] forState:UIControlStateNormal]; 有锯齿:
阅读全文
posted @ 2022-02-28 11:26 土匪7
阅读(372)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
39
下一页
导航
博客园
首页
联系
订阅
管理
公告