onLoad() {
uni.onKeyboardHeightChange(res => {
console.log(res,'resresresresres')
// this.handleKeyboardChange(res.height);
});
},

- 发布:2025-03-27 16:40
- 更新:2025-06-23 11:30
- 阅读:158
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.23
手机系统: Android
手机系统版本号: Android 14
手机厂商: 华为
手机机型: HUAWEI P40
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
onLoad() {
uni.onKeyboardHeightChange(res => {
console.log(res,'resresresresres')
// this.handleKeyboardChange(res.height);
});
},
onLoad() {
uni.onKeyboardHeightChange(res => {
console.log(res,'resresresresres')
// this.handleKeyboardChange(res.height);
});
},
预期结果:
uni-app 安卓平台 uni.onKeyboardHeightChange() 在自定义基座上不触发,直接就是不执行
uni-app 安卓平台 uni.onKeyboardHeightChange() 在自定义基座上不触发,直接就是不执行
实际结果:
uni-app 安卓平台 uni.onKeyboardHeightChange() 在自定义基座上不触发,直接就是不执行
uni-app 安卓平台 uni.onKeyboardHeightChange() 在自定义基座上不触发,直接就是不执行
bug描述:
uni-app 安卓平台 uni.onKeyboardHeightChange() 在自定义基座上不触发,直接就是不执行
