当前位置:网站首页>uniapp createSelectorQuery(). Select get returns null error
uniapp createSelectorQuery(). Select get returns null error
2022-07-29 01:27:00 【Anne Du】
Error message :
An SelectorQuery call is ignored because no proper page or component is found. Please considering using SelectorQuery.in to specify a proper one.
terms of settlement :
/*#ifdef APP-PLUS*/// app
let info= uni.createSelectorQuery().in(this).select('#tableHead');
info.boundingClientRect(data => {
// data Is the height of the current element
this.headerHeight = data.height;
}).exec();
/*#endif*/
/*#ifdef MP*/// Applet
const query = this.createSelectorQuery().select('#tableHead');
query.fields({
size: true
}, data => {
this.headerHeight = data.height;
}).exec();
/* #endif*/
边栏推荐
- Synchronized keyword details
- 【ManageEngine】助力哈尔滨工程大学实现网络流量一体化监控管理
- [leetcode sliding window problem]
- Naver three party login
- 一篇万字博文带你入坑爬虫这条不归路 【万字图文】
- SQL question brushing: find the current salary details and department number Dept_ no
- Intel introduces you to visual recognition -- openvino
- TextKit 自定义UILabel识别链接
- How to smoothly go online after MySQL table splitting?
- 表达式求值
猜你喜欢

Recursion and divide and conquer

【Leetcode-滑动窗口问题】

PlatoFarm社区生态福音,用户可借助Elephant Swap获得溢价收益

Docker compose install MySQL

什么是原码、反码和补码

Tupu software appeared at the 2022 Fuzhou digital Expo to jointly create a new digital era

Connect with Alipay payment

How to smoothly go online after MySQL table splitting?

Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)

Cookies and sessions
随机推荐
ActiveMQ basic details
转:认知亚文化
【ManageEngine】助力哈尔滨工程大学实现网络流量一体化监控管理
RHCE命令练习(一)
Cookies and sessions
Closures and decorators
Intel带你初识视觉识别--OpenVINO
RHCE命令练习(二)
教你一文解决 js 数字精度丢失问题
Flask project architecture (First Edition
Synchronized keyword details
Date conversion EEE MMM DD hh:mm:ss zzz YYYY
C language bracket matching (stack bracket matching C language)
Self-attention neural architecture search for semantic image segmentation
uniapp createSelectorQuery().select 获取返回null报错
Flink SQL Hudi 实战
SQL question brushing: find the current salary details and department number Dept_ no
Flask project construction 2
过去10年的10起重大网络安全事件
Cookies and sessions