Extjs Experience Summary

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.