uni.hideKeyboard()uni.onKeyboardHeightChange(CALLBACK)uni.hideKeyboard()隐藏软键盘 隐藏已经显示的软键盘,如果软键盘没有显示则不做任何操作。 平台差异说明 uni.onKeyboardHeightChange(CALLBACK)监听键盘高度变化 平台差异说明 CALLBACK 返回参数 示例代码 uni.onKeyboardHeightChange(res => { console.log(res.height)}) 在 GitHub 上编辑此页面!