Home > Article > Web Front-end > js real-time acquisition of window size changes example code
As shown below:
$(window).resize(function(){ var Height = $(window).height(); var Width = $(window).width(); })
The above js example code for obtaining window size changes in real time is all the content shared by the editor