Since most of the client-side work such as JavaScript and CSS in the group was handled by another colleague, and that colleague was too busy to refactor, the boss only made suggestions and did not immediately implement the refactoring. But I also fixed some small bugs in the client a few days ago. The code is indeed a bit confusing. I don’t know where I am, and I don’t dare to touch the code easily, so I tinkered with it myself. I once loved and hated it. Using javascript, write a simple js to implement namespace, inheritance, overloading and other object-oriented features. Welcome to contribute . Define namespace Namesapce.js