app.json如下,但是我将custom值改为false又可以了(官方的是true,放项目里就不行),这是为什么? { "pages": [ "pages/index/index", "pages/personal/personal" ], "tabBar": { "custom": true, "color": "#7A7E83", "selectedColor": "#3cc51f", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [ { "pagePath": "pages/index/index", "iconPath": "image/icon_component.png", "selectedIconPath": "image/icon_component_HL.png", "text": "组件" }, { "pagePath": "pages/personal/personal", "iconPath": "image/icon_API.png", "selectedIconPath": "image/icon_API_HL.png", "text": "我的" } ] }, "window": { "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "WeChat", "navigationBarTextStyle":"black" }, "style": "v2", "componentFramework": "glass-easel", "sitemapLocation": "sitemap.json", "lazyCodeLoading": "requiredComponents" }
switchTab跳转失败但是不报错?tabBar用的是官方demo里面的代码,但是官方引入的demo可以运行,自己新建了一个小程序空项目引入,点击切换的时候没反应,也不报错,调试发现调用失败。 [图片]
08-28