An EXT namespace analysis
For packages in Java, we consider a method of managing classes introduced primarily for the repetition of class names. Similarly, because JS defines too many classes, it is inevitable that duplicate class names will be defined. Especially in a world that needs to work together to accomplish projects today. Ext.namespace was born for it. Ext.namespace (' Com.company '); is to define a Com.company package. Com.company.ClassA = function () {}; Defines a class below the Com.company package. You must ask, since the package is defined, why write the package prefix Com.company? I just write Com.company.ClassA = function () {} can't I? Yes, at first I also have such doubts, Com.company.ClassA is not a variable name? Where does the bag come from? Later in practice, JavaScript variable names are not allowed to include '. ' Of Therefore, writing Com.company.ClassA = function () {} directly is not syntactically correct.
Second EXT form form design
varform =NewExt.form.FormPanel ({frame:true, Height:550, LabelAlign:' Left ', Labelwidth:110, DefaultType:' TextField ', defaults: {width:110Allowblank:false}, Items: {layout:' Column ',//defined as column modeheight:100, items: [{columnWidth:.33,//Displays the width of the first column 33%Layout: ' Form ', items: [{xtype:' TextField ',//Show as input boxFieldlabel: 'name,//Tag name LabelStyle:' Color:red ',//title style minlength:6, Minlengthtext: "Length cannot be less than 6 characters", Maxlength:20, Maxlengthtext: "Length exceeds 20 characters", Name:' First ',//style:' Color:white ',//The style of the edit box allowblank:false,//is not allowed to be empty Blanktext:' Password cannot be empty '//Do not allow null-given hints for regex:/[\u4e00-\u9fa5]/,//regular expression between/...../. Regextext: "Can only input Chinese!",//Regular expression error hint anchor:' 90% '}, {xtype:' TextField ', Fieldlabel:‘Birth certificate number, name:' Company ', Anchor:' 90% '}, {xtype:' TextField ', Fieldlabel:' Expiry date ', Name:' Company ', Anchor:' 90% '}]}, {columnWidth:.33, layout:' Form ', items: [{xtype:' TextField ', Fieldlabel:' Warehousing certificate Number ', Name:' Last ', Anchor:' 95% '}, {xtype:' TextField ', Fieldlabel:' Warehousing certificate Number ', Name:' Email ', VType:' Email ', Anchor:' 95% '}, {xtype:' TextField ', Fieldlabel:' Space designator code ', Name:A, Anchor:' 95% '}]}, {columnWidth:.33, layout:' Form ', items: [{xtype:' TextField ', Fieldlabel:' Warehousing certificate Number ', Name:' Last ', Anchor:' 95% '}, {xtype:' TextField ', Fieldlabel:' Warehousing certificate Number ', Name:' Email ', VType:' Email ', Anchor:' 95% '}, {xtype:' TextField ', Fieldlabel:' Re-inspection Certificate Project Model ', Name:' s ', Anchor:' 95% '}]}]}, buttons: [{text:' Execute filter ', Handler:function() { if(!form.getform (). IsValid ()) { return; }; Store.baseparams={Xmlfile:getquerystringvalue (' XMLFile '), Condictions:getcondictionvalues ()}; Store.reload (); Form.getform (). reset (); }}, {text:' Reset ', Handler:function() {form.getform (). reset (); } }] });
The actual task of "JAVA" web development--record