# wx.onWindowResize(function callback)

Listens on the window size change event.

# Parameters

# function callback

The callback function for the window size change event.

# Parameters

# Object res
Property Type Description
windowWidth number New window width (in px)
windowHeight number New window height (in px)
点击咨询小助手