咏竹莉
where there is a will,there is a way
posts - 132,comments - 1,views - 66816
03 2023 档案
小程序 switch
摘要:微信小程序switch 不让事件向上冒泡的方法: 给switch上加个空catchtap事件就不会向上冒泡了 <switch checked="{{item.checked}}" catch:tap='aa' data-index="{{index}}" bindchange="changeOnTe 阅读全文
posted @ 2023-03-24 13:49 咏竹莉 阅读(50) 评论(0) 推荐(0) 编辑
微信小程序实现旋转动画
摘要:还是css3实现的效果: .transfBg { position: absolute; width: 480rpx !important; height: 480rpx !important; left: 50%; top: 50%; margin: -240rpx 0 0 -240rpx; an 阅读全文
posted @ 2023-03-24 11:29 咏竹莉 阅读(345) 评论(0) 推荐(0) 编辑
js padStart() 详解
摘要:padStart() 标准内置对象: String.Prototype.padStart() ES2017引入了字符串补全长度的功能,如果某个字符串不够指定长度,会在头部或尾部补全。padStart() 用于头部补全,padEnd() 用于尾部补全。 str.padStart(2, 0) // 够两 阅读全文
posted @ 2023-03-23 17:20 咏竹莉 阅读(250) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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