For Ext, download an ext2.0 API file and ask you how to understand the API. After you finish reading the API, you can use the API, but you must finish reading it.
Config optionsPublic PropertiesPublic MethodsPublic Events
It is basically composed of the above four parts
The content in config options is configu
There are many Ext. Element APIs, and it is difficult for everyone to grasp the context and main functions in a short time. This is a summary, not an API description. Speaking of API instructions, there was a good online man.
Location settings:
Getx () obtains the X coordinate relative to the page.Gety () obtains the Y coordinate relative to the page.Getxy () obtains the X and Y coordinates relative to the
I believe you have learned the charm of ExtJs. How can you apply ExtJS? To use ExtJS, you must first obtain the ExtJS library file. The ExtJS library file can be downloaded from the ExtJS official website.
Adapter: maps the third-
I believe you have learned the charm of ExtJs. How can you apply ExtJS? To use ExtJS, you must first obtain the ExtJS library file. The ExtJS library file can be downloaded from the ExtJS official website.
Adapter: maps the third-
It is helpful to consolidate the foundation. The Troubleshooting is shown in the following section. direct makes some troubleshooting notes to share with you one by one. If you are interested, you can refer to the occasional tears and finally complete Part of ExtJS.
(If the foundation is solid, it will be helpful. It will be reflected in troubleshooting)
Next we will take some troubleshooting notes on Ext. Direct:
Error 1:
The Code is as follows:
after extjs compression. The compressed code is smaller in size and can be loaded faster;Of course the extjs documentation is in docs. The most important one is the extjs API, which is a magic weapon in the process of developing the extjs program.Examples is an official dem
To use extjs, you must first obtain the extjs library file. The extjs library file can be downloaded from the extjs official website.
Adapter: maps the third-party underlying libraries (including the underlying libraries provided by ext) to the underlying libraries supported by Ext.Build: All the compressed ext Sou
ExtJS learning ----------- Ext. Number, ExtJS extension of Number in javascript, extjs Extension
ExtJS extension of the Number in javascript, you can refer to its help documentation, Documentation: http://download.csdn.net/detail/z1137730824/7748893
The following describes some of the methods:
(1) constrain
Constrain
ExtJS learning ----------- Ext. String, ExtJS extension of String in javascript, extjs Extension
For ExtJS String extension in javascript, you can refer to its help documentation, Documentation: http://download.csdn.net/detail/z1137730824/7748893
The following describes some of the methods:
(1) capitalize
Capitalize (S
Common Extjs tools: Extjs. util. Format
---------- String
Ext. util. Format. capitalize (string str); // uppercase the first letter.
Ext. util. Format. ellipsis (string value, Number length); // truncates a specified length character. The ellipsis '...' is automatically added to the end '...'
Ext.util.Format.html Encode (string value); // Encode the text
Lowercase (string value); // small write
StripScripts
The first part of the Extjs series + function Extension, one of the extjs Series
Opening part:
I have been using Extjs for more than three and a half years. Now my project has been transformed to an Internet product for more than half a year, and I have transformed js to the jquery series. I would like to write some summary and records on
Title RememberThis series of articles is not the introduction of a full set of focus ExtJS use, you just focus on solving extjs thinking problems. People don't write long speeches. Others can learn to be self-reliant. LSome people just learn css JavaScript for English is not very poor (with auxiliary word bully can read the API of
Title RememberThis series of articles is not the introduction of a full set of focus ExtJS use, you just focus on solving extjs thinking problems. People don't write long speeches. Others can learn to be self-reliant. LSome people just learn the basics of JavaScript in CSS and do not have very bad English (in order to help PowerWord can understand ExtJS
, catch And throw keywords is for synchronous programming.
ExtJS:ExtJS augmented with Deftjs may provide Deferred and Promises.
AngularJS:AngularJS offers an implementation of the "Q" API for Deferred and Promises.
Dirty check dirty check: frame compared to old value and new value, if they are inconsistent, trigger change event
ExtJS:
(resp, options ){// Standard JSON string '{"data": [{"msg": "abcd"}]}'Var jsonObj = Ext. util. JSON. decode (resp. responseText );// Display the modal prompt boxExt. Msg. alert ('title', jsonObj. data [0]. msg, function (btn ){// Ext's modal window is very important because it only shields operations, does not block threads, and js does not have threads.// Callback of the button event in the prompt boxAlert (btn); // then run});Alert (1); // execute first}// Failure: function () {...} // option
": "abcd"}]}'Var jsonObj = Ext. util. JSON. decode (resp. responseText );// Display the modal prompt boxExt. Msg. alert ('title', jsonObj. data [0]. msg, function (btn ){// Ext's modal window is very important because it only shields operations, does not block threads, and js does not have threads.// Callback of the button event in the prompt boxAlert (btn); // then run});Alert (1); // execute first}// Failure: function () {...} // optional});});Ext's ApiDoc is very good at learning. Do not read
obtain all
Label, you can use:
Var ps = Ext. select ('P ');
In this way, you can operate on the elements to be obtained. The select () method returns Ext. the CompositeElement object can be traversed by the each () method:
The Code is as follows:
Ps. each (function (el ){El. highlight ();});
Of course, if you perform the same operation on All retrieved elements, you can directly apply the operation to the CompositeElement object, for example:
Ps. highlight ();
Or:
Ext. select ('P'). highlig
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.