課程
/前端開發
/HTML/CSS
/入門微信小程序開發
咦 為什么我在app.json中輸入tabBar沒有像老師那樣跳出后面的幾行提示代碼呀?
2018-04-20
源自:入門微信小程序開發 1-10
正在回答
下面是我的源碼,你看一下,應該是在?"window"結束之后沒有加? ?,? ?吧,仔細檢查一下代碼。
{
? "pages":[
? ? "pages/index/index",
? ? "pages/join/join",
? ? "pages/logs/logs"
? ],
? "window":{
? ? "backgroundTextStyle":"light",
? ? "navigationBarBackgroundColor": "#2e5e86",
? ? "navigationBarTitleText": "模板Dome",
? ? "navigationBarTextStyle":"black"
? },
? "tabBar": {
? ? "selectedColor": "#2e5e86",
? ? "list": [
? ? ? {
? ? ? ? "pagePath": "pages/index/index",
? ? ? ? "text": "首頁",
? ? ? ? "iconPath": "images/sy.png",
? ? ? ? "selectedIconPath": "images/sy1.png"
? ? ? },
? ? ? ? "pagePath": "pages/join/join",
? ? ? ? "text": "消息",
? ? ? ? "iconPath": "images/xx.png",
? ? ? ? "selectedIconPath": "images/xx1.png"
? ? ? }
? ? ]
? }
}
舉報
帶你入門微信小程序開發,了解微信小程序的基本知識。
1 回答輸入tabBar后沒有代碼提示
2 回答代碼不提示
1 回答來自小白的提問,代碼包過大是什么問題??怎么解決。
3 回答不懂代碼的小白,可以學嗎?
1 回答代碼提示怎樣弄的
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-04-20
下面是我的源碼,你看一下,應該是在?"window"結束之后沒有加? ?,? ?吧,仔細檢查一下代碼。
{
? "pages":[
? ? "pages/index/index",
? ? "pages/join/join",
? ? "pages/logs/logs"
? ],
? "window":{
? ? "backgroundTextStyle":"light",
? ? "navigationBarBackgroundColor": "#2e5e86",
? ? "navigationBarTitleText": "模板Dome",
? ? "navigationBarTextStyle":"black"
? },
? "tabBar": {
? ? "selectedColor": "#2e5e86",
? ? "list": [
? ? ? {
? ? ? ? "pagePath": "pages/index/index",
? ? ? ? "text": "首頁",
? ? ? ? "iconPath": "images/sy.png",
? ? ? ? "selectedIconPath": "images/sy1.png"
? ? ? },
? ? ? {
? ? ? ? "pagePath": "pages/join/join",
? ? ? ? "text": "消息",
? ? ? ? "iconPath": "images/xx.png",
? ? ? ? "selectedIconPath": "images/xx1.png"
? ? ? }
? ? ]
? }
}