当前位置:网站首页>Wechat applet -- dynamically set the navigation bar color
Wechat applet -- dynamically set the navigation bar color
2022-07-23 13:42:00 【Dark_ programmer】
Wechat applet -- Dynamically set navigation bar color
Since you want to dynamically set the navigation bar color , It is estimated that Custom navigation bar I can't run
About dynamically setting the navigation bar color , The official document of wechat applet gives a API: wx.setNavigationBarColor
Official example :
wx.setNavigationBarColor({
frontColor: '#ffffff',
backgroundColor: '#ff0000',
animation: {
duration: 400,
timingFunc: 'easeIn'
}
})
My actual use :
wx.setNavigationBarColor({
frontColor: '#ffffff',
backgroundColor: '#ffffff',
animation: {
duration: 400,
timingFunc: 'easeIn'
},
success: () => {
console.log(' Set up the success ')
},
fail: () => {
console.log(' Setup failed ')
},
complete: () => {
console.log(' End of setup ')
},
})
It should be noted that :
- frontColor There are only two options :
#ffffffand#000000 frontColor、backgroundColorBoth need to be set
边栏推荐
- About this pointer
- Beifu PLC and C transmit string array type variables through ads communication
- 基于BIM+3DGIS的智慧城市基础设施管理
- C语言插入排序(直接插入排序)
- Don't be silly to distinguish these kinds of storage volumes of kubernetes
- Google play app store may delete the overview of APP permissions and use a new combination of data security information
- keepalived双机热备
- Research on hardware architecture of Ti single chip millimeter wave radar xwr1642
- Beifu PLC -- C ads communication reads variables in the form of notification
- Typora 修改表格宽度
猜你喜欢

Problem solving: script file 'scripts\pip script py‘ is not present.

“算力猛兽”浪潮NF5468A5 GPU服务器开放试用免费申请
![[JS advanced] basics of regular expressions - about regular expressions you want to know_ 01](/img/b8/7961a3c4375c93971ddd74b1a2473f.jpg)
[JS advanced] basics of regular expressions - about regular expressions you want to know_ 01
![[jzof] path in matrix 12](/img/33/426386fc3dc3e32b6968d30034d66a.png)
[jzof] path in matrix 12

MySQL的索引事务&&JDBC编程

【可視化調度軟件】上海道寧為SMB組織帶來NETRONIC下載、試用、教程

Kept dual machine hot standby
![[图形学]ASTC纹理压缩格式](/img/d1/734fe91d56716c610980696a8e0d06.png)
[图形学]ASTC纹理压缩格式

第七天笔记

Notes du jour 7
随机推荐
动态规划每日一练(1)
Beifu and C transmit real type through ads communication
Wu Enda machine learning series p31~p42
[jzof] 08 next node of binary tree
Backtracking method to solve the eight queens problem
Feynman learning method (redis summary)
"100 Android interview questions" I brushed angrily for Dachang
[jzof] 09 realize queue with two stacks
Ros2 self study notes: gazebo physical simulation platform
-XX:+UseCGroupMemoryLimitForHeap 无法创建虚拟机问题
Charles抓包工具测试实战
ModuleNotFoundError: No module named ‘setuptools_rust‘
DeFi 永不消亡?
Running matlab program on GPU
概率沉思錄:2.The quantitative rules
MySQL的索引事务&&JDBC编程
Day 11 notes
4D antenna array layout design
Defi will never die?
反常积分的审敛