当前位置:网站首页>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()
边栏推荐
- 04 route jump and carry parameters
- [deep learning] fast Reid tutorial
- [data and Analysis Visualization] D3 introductory tutorial 2- building shapes in D3
- Laravel permission export
- Automatic differential reference
- [data analysis and visualization] key points of data drawing 11- precautions for radar chart
- Matlab: find the inner angle of n-sided concave polygon
- Paipai loan parent company Xinye quarterly report diagram: revenue of RMB 2.4 billion, net profit of RMB 530million, a year-on-year decrease of 10%
- 05 tabbar navigation bar function
- Laravel 权限导出
猜你喜欢

Paper reading - jukebox: a generic model for music

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

Paper reading - beat tracking by dynamic programming

Useful websites for writing papers and studying at ordinary times

Mean Value Coordinates

Open source video recolor code
![Leetcode 473. 火柴拼正方形 [暴力+剪枝]](/img/3a/975b91dd785e341c561804175b6439.png)
Leetcode 473. 火柴拼正方形 [暴力+剪枝]

Data processing in detailed machine learning (II) -- Feature Normalization

04路由跳转并携带参数
![[data analysis and visualization] key points of data drawing 9- color selection](/img/76/0d707b3d2446b5cd8002cbc2834c5c.jpg)
[data analysis and visualization] key points of data drawing 9- color selection
随机推荐
L1 regularization and its sparsity
After idea uses c3p0 connection pool to connect to SQL database, database content cannot be displayed
Laravel 权限导出
[data analysis and visualization] key points of data drawing 5- the problem of error line
Branch and bound method, example sorting
[reading papers] transformer miscellaneous notes, especially miscellaneous
Leetcode 473. Match to square [violence + pruning]
Opencv 15 face recognition and eye recognition
speech production model
Resource arrangement
03 recognize the first view component
Find the number of permutations
SANs证书生成
OpenCVSharpSample04WinForms
03 认识第一个view组件
regular expression
4.11 introduction to firmware image package
Huffman tree and its application
Why does it feel that most papers still use RESNET as the backbone network rather than densenet?
Understanding and thinking about multi-core consistency