I have been engaged in extjs for half a year. Now I want to write it down and share it with you so that you can avoid detours!
Extjs is engaged in front-end interface!
First experience:
A project's front-end interface will have more or less the same part! Before doing a project, we need to analyze it carefully and extract the common parts!
For example, the additional download function, attachment upload, multi-attachment upload, and multi-attachment management!
If you do not know what needs to be extracted, I would like to introduce you to a good solution! :
Create a module that covers a wide range of projects, and then optimize it! Then write another module. When you write another module, you will find that many things are the same! The first thing you think of is copying and pasting! But I want to remind you that please stop your action and do not copy or paste it. copying or pasting can not only enlarge your results but also enlarge your errors! Try to extract an abstract class from the place where you need to copy and paste it, and then write a new class to embody your other projects. When you keep doing so, you will find the benefits of doing so! Believe me! Although some people say that fast development, how fast copy and paste are, and how fast abstraction is required, it is a waste of time! I can't help you think so. Of course there is no error in doing so, and the program can also run. Sometimes the efficiency is quite high! When you add new features or modify existing features, copy and paste them one by one!
Second Experience:
Components should inherit their own components as much as possible! Instead of writing it in a function and loading it with Ext. onready !! Component inheritance can reduce the amount of your code! Make your code easy to maintain!
3rd experiences:
If you encounter a lot of problems, baidu should first look at the extjs Doc and examples. All the problems you need to solve are in Doc or examples!
When writing code, the doc is always on!
4th experiences:
You need to share your code frequently. Otherwise, you will become a slot!
5th experiences:
If you want to reply to the post, the author of the article will not be passionate about writing the second article he thinks is a good one!