怎么样可以动态设置app.json
"window": {
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "拉",
"backgroundColor": "#f0f1f5"
},
"tabBar": {
"color": "#979797",
"selectedColor": "#00b38a",
"backgroundColor": "#fff",
"borderStyle": "black",
"list": [{
"pagePath": "pages/company/company",
"text": "主页",
"iconPath": "images/icon-job.png",
"selectedIconPath": "images/icon-job-hover.png"
}, {
"pagePath": "pages/jobList/jobList",
"text": "职位",
"iconPath": "images/icon-company.png",
"selectedIconPath": "images/icon-company-hover.png"
}, {
"pagePath": "pages/user/user",
"text": "我的",
"iconPath": "images/icon-user.png",
"selectedIconPath": "images/icon-user-hover.png"
}]
}
里面的这些值?view标签下英文不换行,中文会自动换行--微信小程序开发。
求助
本文来自微信小程序开发者论坛 微信小程序工厂 http://www.xcxgc.com 转载请保留。
微信小程序开发者回答:
付***:
不能动态设置 ,官方暂没提供相关API
本文网址:http://www.91bianli.com/weixinxiaochengxu/52075.html