Since learning W3C standards, I seem to have developed a quirk when it comes to code. If it can be reused uniformly, I won't write a little more. In this way, the front-end page code will look much cleaner, and the efficiency will increase linearly.
The benefits of writing this way are obvious. You don’t need to write the behavior that triggers the action in each object, which greatly saves code and JS More readable.
I will publish the personalized page after a period of time, so that everyone can see the benefits of using events to trigger object actions.
GOOGLE, and Microsoft LIVE's personalized page They are very well written, so everyone can learn their code, which will be of great help to your future AJAX applications.