const query = uni.createSelectorQuery().in(this);
query.select('#goamder').boundingClientRect(data => {
console.log(data)
}).exec();
- 发布:2020-07-05 11:24
- 更新:2021-06-15 10:06
- 阅读:1239
运行报 “ TypeError: Object [object HTMLUnknownElement] has no method 'matches' at view.umd.min.js:1“
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 2.6.16
手机系统: Android
手机系统版本号: Android 10
手机厂商: vivo
手机机型: 摸机器安卓
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
运行正确
运行正确
实际结果:
运行后台报错运行报 “ TypeError: Object [object HTMLUnknownElement] has no method 'matches' at view.umd.min.js:1“
运行后台报错运行报 “ TypeError: Object [object HTMLUnknownElement] has no method 'matches' at view.umd.min.js:1“
bug描述:
const query = uni.createSelectorQuery().in(this);
query.select('#goamder').boundingClientRect(data => {
console.log(data)
}).exec();
动态获取元素高度
运行后台报错运行报 “ TypeError: Object [object HTMLUnknownElement] has no method 'matches' at view.umd.min.js:1“