tabbar:微信小程序标签

时间:2021-05-10 10:13:02
【文件属性】:
文件名称:tabbar:微信小程序标签
文件大小:56KB
文件格式:ZIP
更新时间:2021-05-10 10:13:02
JavaScript tabbar WeChat small program tabbar 1、在template.js按照对应的key配置对应数据,其中current表示是否 选择当前的tab,直接配置为0即可 2、在对应的js引用template文件夹中的templalte.js------>var template = require('../../template/template.js'); 3、然后在onLoad生命周期中注册对应的tabbar-------> template.tabbar("tabBar", 0, this)//0表示第一个tabbar,1表示第二个tabbar如此类推 4、在对应的wxml中引入template.wxml------> 5、使用模板-------------> 注意:第5点data属性中格式必定为该格式,原因如下: 1、与template.wxml中的绑定的ta
【文件预览】:
tabbar-master
----app.js(1KB)
----project.config.json(449B)
----utils()
--------util.js(472B)
----README.md(1KB)
----imgs()
--------home.png(3KB)
--------bland.png(7KB)
--------buy.png(4KB)
--------search1.png(2KB)
--------message.png(3KB)
--------search.png(1KB)
--------buy_on.png(3KB)
--------timg.gif(6KB)
--------bland_on.png(7KB)
--------message_on.png(3KB)
--------home_on.png(3KB)
--------category.png(3KB)
--------category_on.png(3KB)
----pages()
--------index()
--------news()
----app.json(241B)
----template()
--------template.wxml(426B)
--------template.wxss(405B)
--------template.js(1KB)
----app.wxss(35B)

网友评论