请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
112
帖子
2
勋章
1597
Y币

[App引擎] setMenuItems

[复制链接]
发表于 2022-1-10 16:00:22
本帖最后由 3331123 于 2022-1-10 16:03 编辑

api.setMenuItems 有点问题啊,麻烦官方帮忙看看,iphone6、iphoneX、iphone13及pro都是 这样的问题

  • {
  •         customItems: [],
  •         systemItems: []
  •     }

以上代码表现为无法屏蔽系统的菜单

api.setMenuItems({
        customItems: ['菜单1'],
        systemItems: []
    }, function (ret, err) {
        var index = ret.index;
        alert(index)
    });

以上代码表现为无回调

我们测试看看
把完整的代码发出来,我这边测一下
112
帖子
2
勋章
1597
Y币
代码1:
api.setMenuItems({
        customItems: ['菜单1'],
        systemItems: []
    }, function (ret, err) {
        var index = ret.index;
        alert(index)
    });


代码2:
api.setMenuItems({
        customItems: [],
        systemItems: []
    }, function (ret, err) {
        
    });
特特法爷 · 2022-1-10 17:06把完整的代码发出来,我这边测一下
昨天我测试了下,是可以的,iphone6 ,在打开openframe 的时候设置 allowEdit 设置为true
您需要登录后才可以回帖 登录

本版积分规则