收藏
回答

uni.onKeyboardHeightChange为什么在ios上不执行?

uni.onKeyboardHeightChange(res => {

console.log("keyboardHeight0");

let keyboardHeight = this.keyboardHeight

console.log(keyboardHeight,"keyboardHeight1");

if (res.height === keyboardHeight) return

this.keyboardHeight = res.height;

keyboardHeight = res.height;

console.log(keyboardHeight,"keyboardHeight2");

})

回答关注问题邀请回答
收藏
登录 后发表内容