当前位置:网站首页>wx.createSelectorQuery()在components获取Dom节点的使用
wx.createSelectorQuery()在components获取Dom节点的使用
2022-06-13 02:38:00 【紫轩阁】
1、在components获取Dom节点的使用
const query = wx.createSelectorQuery().in(this) query.select('#the-id').boundingClientRect(function(res){
res.top // 这个组件内 #the-id 节点的上边界坐标
}).exec()
边栏推荐
- redis 多个服务器共用一个
- Automatic differential reference
- redis.conf总配置详解
- [pytorch]fixmatch code explanation - data loading
- 柏瑞凱電子沖刺科創板:擬募資3.6億 汪斌華夫婦為大股東
- 03 认识第一个view组件
- How to learn to understand Matplotlib instead of simple code reuse
- Stm32f4 DMA Da sine wave generator keil5 Hal library cubemx
- [pytorch] kaggle image classification competition arcface + bounding box code learning
- Change tax for 2
猜你喜欢
[reading papers] deep learning face representation by joint identification verification, deep learning applied to optimization problems, deepid2
Leetcode 450. Delete node in binary search tree [binary search tree]
Understand CRF
Mean Value Coordinates
[pytorch]fixmatch code explanation (super detailed)
OneNote User Guide (1)
Useful websites for writing papers and studying at ordinary times
4.11 introduction to firmware image package
speech production model
Think about the possibility of attacking secure memory through mmu/tlb/cache
随机推荐
Opencv 15 face recognition and eye recognition
Useful websites for writing papers and studying at ordinary times
Laravel permission export
[reading papers] dcgan, the combination of generating countermeasure network and deep convolution
[reading papers] deep learning face representation by joint identification verification, deep learning applied to optimization problems, deepid2
Opencv 07, pixel read, change and bitmap write
05 tabbar navigation bar function
[dest0g3 520 orientation] dest0g3, which has been a long time since we got WP_ heap
Termux SSH first shell start
What are the differences in cache/tlb?
Impossible d'afficher le contenu de la base de données après que l'idée a utilisé le pool de connexion c3p0 pour se connecter à la base de données SQL
Automatic differential reference
[data analysis and visualization] key points of data drawing 10- construction of legend
Fast Color Segementation
Opencvsharp4 pixel read / write and memory structure of color image and gray image
Sans certificate generation
Multiple knapsack problem
01 初识微信小程序
Think about the possibility of attacking secure memory through mmu/tlb/cache
03 recognize the first view component