设备键盘onKeyboardHeightChange版本:4.x本页总览Taro.onKeyboardHeightChange(callback)监听键盘高度变化支持情况: 参考文档类型(callback: Callback) => void参数参数类型callbackCallbackCallback(result: CallbackResult) => void参数类型resultCallbackResultCallbackResult参数类型说明heightnumber键盘高度示例代码Taro.onKeyboardHeightChange(res => { console.log(res.height)})