WeChat Mini Programs, how to get the width and height of a custom component?

such as the title.
or can only be obtained through events?
Thank you!

Dec.28,2021

for example, getSize () is a method under dialog.js , where D2 is the id value of the custom component
clipboard.png

dialog
clipboard.png

dialoggetSize()
clipboard.png
clipboard.png

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ebc38c-28b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ebc38c-28b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?