无效的 page.json [“window“] 页面.json配置了“window“: {“disableScroll“: true}
·
问题:启动小程序时报错 无效的 page.json ["window"] 页面

解决:
app.json 全局配置才使用window对象,在单独的页面直接写disableScroll:true即可
//app.json中添加,window里面添加就可以了
"window": {
"disableScroll": true
},
//单独设置,比如index下,就在index.json设置
{
"navigationBarTitleText": "首页",
"disableScroll":true}
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)