This article to record the study notes;• Know Ext.js and ext-more.js first of all, we need to know the role of these 2 JS files, these two files contain some basic definitions of EXT, basic properties and methods, we want to focus on learning and drill down into the underlying code for research. • If shown: API location, Ext.js method: –ext.applyext.applyif–ext.e
Document directory
Example
Iv. comprehensive example bringing it all together
Ext js 4 countdown: Dynamic Loading and new class mechanism count down to ext JS 4: Dynamic Loading and New Class
System
(Lower)
January 19,201 1 by EdText Translation ext (ajaxjs.com) Frank
Document directory
Class Definition
Multi-state mixins
Configuration item Automatic Reader auto setters and getters for configurations
Ext js 4 countdown: Dynamic Loading and new class mechanism count down to ext JS 4: Dynamic Loading and New Class
System
(I)
January 19,201 1 by EdText Translation
Ext4 does not explain what ext4 is. It can read thisArticleYou must know.
Download the ext4 compressed package, dozens of megabytes a day. This is not written by humans.
But what I want to say is: the author intentionally makes it so big that there is not so much single source code, about 3 MB.
It is not easy to interpret the source code of Ext.
But I believe many people need it!
I hope this source code explanation will benefit you a lot.
This article provides an example of how ext receives json data from an action. For more information about how to receive json data from an action, see ext.
The Code is as follows:
Ext. Ajax. request ({Method: 'post', // Request methodParams: {dagl_code: dagl_code },Url
Let's talk about Ext JS components-Component base class: Ext. ComponentOverview
Ext. Component is the base class of all Ext components, which is mentioned in the first sentence of Ext. Component API. The second section describes t
refactoring, so I see a more concise and clear code, that is, this JS file: Abstractelement.js, he has two top-of-the-line function, let developers sigh again the power of ext bottom. They are ext.get and ext.fly. Well! Please remember their names!! One approach uses a caching mechanism to improve the efficiency of getting DOM nodes, while the other uses JavaScript's classic ' enjoy meta ' mode to improve
password is incorrect! ');}},Failure: function (XMLHTTP, request ){W. Close ();Ext. msg. Alert ('error', "server error ");}
});}
}
Second:
Ext. getcmp ("save"). On ('click', submit); // when you click the Save button with the ID, run the loginfun function.
function submit () { var W = ext. getcmp ("_ window"); var F =
From the library perspective, ext (a friend who likes Chinese can visit its Chinese site) is not much different from prototype jquery Yui, but it has its advantages, complete oo support, mature general-purpose widgets, and support themes, good scalability, fast update and release of new widgates,CommunityIt is also very lively. The most important thing is that I personally like it.
OpenSource codeTake a look at its structure: Start with core.
Sometimes, is it easy for us to use ext because of its shy JS syntax? There may be many examples when we first came into contact with each other. However, when we sighed, we still felt that it was a mouse to pull the mouse and we couldn't start with it? Perhaps, we should calm down and do not have to drill down. A casual interface can be drawn by Ext, it seems th
parameter of the Define method properties configuration, we need to find ext for the class supported API and to match Well, it's customary to go to the chestnuts, see the Chestnut code.1Ext.onready (function () {2 //Config, constructor constructor3 4 //How to define a class in Ext: Ext.define (ClassName, properties, callback)5Ext.define (' person ',{6 //Here are some of the configuration in
A JS access B js, and a Select the GUID of the line to B to the JS processing mattersA's JS notationvar receiverfrom = new Xxx.xxx Child JS method body name ({parentcmp: _this, patientname:in_org_id: _this.grid.getselectionmodel (). Selected.items[0].raw. in_org_id,xx:123});
);--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------Ext.function API to provide you with 13 methods, are not used to say--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------Ext.dateExt.Date.between (Date date,date start,date end):
, deep links can be implemented in the application. With these updates, application development will be more efficient.Responsive Layout
From today on, by using a responsive Configuration System, Ext JS 5 provides an optimal visual experience for applications across desktops and tablets without any changes in the direction.Component upgrade
As the demand for components increases, Sencha continues to enhance
The ext foreground receives the JSON data that the action passes over
Copy Code code as follows:
Ext.Ajax.request ({
Method: ' POST ',//Request mode
Params: {Dagl_code:dagl_code},
url:lcwpath+ "/daxt/lcgl.shtml?method=getjgbycode",//requested URL address
Success:function (response, opts) {
if (response.responsetext!= ' {} ') {
alert (Response.responsetext);
var dagl_jg = Ext.util.JSON
A lot has changed since Sencha Touch 2.4.2 upgrade to Ext JS 6,cmd version upgraded to 6.0First from the cmd, cmd 6 in the Sencha app build package can not be used, Sencha app build native seems to be useless.And the good news is that we can useSencha Ant Native BuildSencha Ant Package BuildThese two commands, the visual and the previous effect almostAnd then say the change of
Other methods://1:compile: Compiling a selector or XPath into a reusable functionvar fn = Ext.DomQuery.compile (' span '); Alert (FN);var arr = fn (ext.getdom (' D1 ')); Ext.Array.each (arr,function//2:filter: Filter An array of elements using a simple selector // var arr = document.getelementsbytagname (' div ' var Filterarr = Ext.DomQuery.filter (arr, ' div[id=d1] ', false ); Ext.Array.each (Filterarr,function//is: Determines whether the element matches a simple selector alert (Ext.DomQuery.i
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.