小程序获取键盘高度wx.onKeyboardHeightChange
作者:xlnxin发布时间:2023-02-14分类:其他相关教程浏览:1819
导读:wx.onKeyboardHeightChange(res=>{ console.log(res.height)})wx.getSelectedTextRan...
wx.onKeyboardHeightChange(res => {
console.log(res.height)
})
wx.getSelectedTextRange() 在 input,textarea 等 focus 之后,获取输入框的光标位置,注意:中有在focus的时候调用此接口才有效
- 其他相关教程排行
- 最近发表