当前位置:网站首页>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*/
边栏推荐
猜你喜欢
随机推荐
[Jenkins' notes] introduction, free space; Continuous integration of enterprise wechat; Allure reports, continuous integration of email notifications; Build scheduled tasks
Brushless DC motor controller (how much is the hall charge for changing the motor)
过去10年的10起重大网络安全事件
【mysql】多指标历史累计去重问题
一文搞懂ES6基本全部语法
dart数组,Map,类型判断,条件判断运算符,类型转换
Naver 三方登录
嵌入式分享合集23
Instruction rearrangement, happens before, as if serial
Synchronized关键字详解
Seven SQL performance optimizations that spark 3.0 must know
C language bracket matching (stack bracket matching C language)
【ManageEngine】助力哈尔滨工程大学实现网络流量一体化监控管理
正则校验与时间格式化
JS judge whether array / object array 1 contains array / object array 2
uniapp createSelectorQuery().select 获取返回null报错
Flink Postgres CDC
ActiveMQ basic details
Spark 3.0 中七个必须知道的 SQL 性能优化
日期转换 EEE MMM dd HH:mm:ss zzz yyyy









