How to get the height of the component on the page

The

page has a head. In order to calculate the height difference, if the head is written dead, the height can be calculated by wx.createSelectorQuery (). However, if a component is used to make a head, the height of the head cannot be taken. How to calculate the height? The height of the component is not written to death. The method of finding the height is written in the ready method of the component, but you can"t get

in the onLoad and onReady of the page.
Feb.16,2022

add a timer to test

Menu