Skip to main content
Some notes on monitoring browser window size

Process

In order to use echarts charts in a vue project, the canvas-based echarts cannot change with the window size. In this case, it is necessary to listen for window size changes and dynamically execute the echarts resize method.

Add event handlers to the Window object


init-qyAbout 2 minfront-end developmentjsvue
A Brief Study on the Execution Mechanism of JavaScript

Preface

Recently, I have been following the blog of Mr. Ruanyifeng, and he is truly an exemplary figure. Writing a blog is not difficult, but what is difficult is to consistently write blogs and maintain a spirit of learning and sharing. Persistence is a challenging thing, and I hope I can keep it up. Now, let's get back to the point. I read a blog post by Mr. Ruanyifeng, which was said to have been criticized (JavaScript Event Loop Explained: Revisiting Event Loop), and I made a summary based on it.


init-qyAbout 2 minfront-end developmentjsvue