微信小程序
Martian_小小
这个作者很懒,什么都没留下…
展开
-
微信小程序细碎知识点(二) 关于通过index获取循环列表的某个元素
动态获取循环列表中的某个项可以通过index索引找到代码如下:.wxml:<view class="tab" wx:for="{{tabnav.tabitem}}" wx:key="id" bindtap="setTab" data-index="{{index}}" style="background:{{item.background}};{{index>4?'border-bottom: 1rpx dotted #ddd':''}}">{{ite原创 2020-07-26 12:20:28 · 2037 阅读 · 0 评论 -
微信小程序细碎知识点(一) 背景图片的设置(mode模式),tab栏以及自定义导航栏消失
最近在弄微信小程序,把开发过程中遇到的问题和细碎知识点记录下来,方便查询一、有关Tabbar和导航栏的知识在所有页面让顶部导航栏消失:在app.json中添加 “navigationStyle”:“custom”自定义某个页面A让导航栏消失,其他页面导航栏存在,则在A.json中添加"navigationStyle":“custom” ,app.json中添加 “navigationStyle”:“default”Tabbar中最多5个子项,最少2个子项,有属性:“color”“ba原创 2020-07-25 13:11:54 · 801 阅读 · 0 评论