WeChat Mini Programs, get the element, and then set it width and height, what should be done?

there seems to be no direct way to get elements,

ask for a sample code, thank you ~

Menu