1***@qq.com
1***@qq.com
  • 发布:2024-07-31 09:12
  • 更新:2024-08-01 11:41
  • 阅读:224

uniappX 使用uni.onKeyboardHeightChange报错

分类:uni-app x

uniappX 使用uni.onKeyboardHeightChange监听键盘高度 报uni.onKeyboardHeightChange is not a function

2024-07-31 09:12 负责人:无 分享
已邀请:
999

999 - 全栈开发在线接单(有团队) 有需要请联系 vx : docxxlsx

只能用输入框组件的这个事件 @keyboardheightchange

DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

上面评论对,没有这个 api ,你可以在 input/.textarea 里监听变化,具体参考文档 https://doc.dcloud.net.cn/uni-app-x/component/input.html#uniinputkeyboardheightchangeevent

后续可以善用文档和搜索功能。

要回复问题请先登录注册

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容