I believe that many people have a big idea about client-side programming using js. In fact, there are already many excellent js libraries that can greatly simplify the workload of js programming, jquery and extjs are two excellent js libraries. I have used jquery frequently in projects. This time I mainly learned how to use extjs, but the existing tutorials are basically for 2.0, and the background language is rarely used. net platform C #, so I plan to use C # In the background for version 3.0, record my learning process, and hope to discuss and make progress together with like-minded friends.
Extjs official website is http://www.extjs.com, the current highest version is 3.0.2, but only 3.0.0 without any download restrictions, you can click here to download version 3.0. The downloaded package contains the compressed extjs library, the library used for debugging, and readable source code, documents, and examples. Before you start, take a look at the examples in the examples folder and have a perceptual knowledge of extjs, let's start extjs's learning journey together.
First clarify the files we need to reference, including adpter/ext/ext-base-debug.js, ext-all-debug.js and the entire resource folder, of course, in most cases, we also need ext-lang-zh_CN.js for Chinese localization, the file is in the src/locale directory. Because it is a learning phase, we use the debug version. In actual projects, we need to use the compressed version for release to reduce the file size. Next, we start our first Hello world Program with a consistent tradition in the programming world.
Create a new one, change the file name to hello.htm, open it in a text editor, and write the following code:
Hello.htm
The Code is as follows:
Extjs hello world dialog