- 博客(4)
- 收藏
- 关注
原创 小程序开发之删除数组中某个元素
因为小程序里面不是用remove这个方法,所以特别提一下。改用splice这个方法来删除数组中的元素。因为是要删除数组里面特定元素,所以我们先用findeIndex这个方法查询到指定元素所在集合中的位置。varremoveindex=that.data.likeCollection.findIndex(function(value,index,arr){returnvalue==id;})查到返回位置Index,找不到则返回-1.之后就简单了。...
2021-09-30 14:57:52 2380
原创 小程序开发之点击图片预览放大图片
首先在你需要触发的地方写个触发方法,我这边是bindtap="clickimage",另外绑定用户触发的图片集合data-clickimageurl="{{item.Image_List}}"<view class="bg-img {{item.Image_Number>1?'':'only-img'}}" style="background-image:url({{image}});" wx:for="{{item.Image_List}}" wx:key="{{index}}" wx:
2021-09-29 16:32:57 1085
原创 微信小程序开发之窗口底部TabBar
"tabBar": { "color": "#ccc", "selectedColor": "#35495e", "borderStyle": "white", "backgroundColor": "#f9f9f9", "list": [{ "pagePath": "pages/Home/Home", "text": "推荐", "iconPath": "", "selectedIconPath": "" ...
2021-09-28 14:31:18 146
空空如也
这个怎么用css实现?
2023-03-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人