Okay, let’s get started
Refactoring is actually not a big move. The main function to be achieved is to re-divide the existing JS code and decouple the existing modules. Then I plan to divide the existing program into modules and repackage it into a namespace to implement use or something similar to Java's Package. Then I only need to load a use js file and call the use function of this file. By setting certain parameters, I can dynamically load the required modules. This was the most perfect idea (I was stupid and naive at the time). OK, the nightmare begins.
Premise, I underestimated myself 3 months ago. //Okay, uncivilized terms may appear below~~
First of all, on the first day of the plan, my intention is to separate the most decoupled part of this program, the self-made control part. Speaking of which, people have also tried to write some form controls such as Panel.js, Button.js and other controls. There are a lot of js files in them. Although I have divided the folders, but when I see the index page That series of