??xml version="1.0" encoding="utf-8" standalone="yes"?>日本亚洲中午字幕乱码,亚洲国产精品久久网午夜 ,亚洲AV成人无码网站http://m.tkk7.com/alter/category/51333.html满 Ȁ?醇厚zh-cnSat, 07 Apr 2012 16:19:33 GMTSat, 07 Apr 2012 16:19:33 GMT60Extjs4Ҏ介l二http://m.tkk7.com/alter/articles/373464.htmla_altera_alterFri, 06 Apr 2012 06:32:00 GMThttp://m.tkk7.com/alter/articles/373464.html

Mixins

官方文介绍

This is a new approach to plugging custom functionality into existing classes. The new mixins config, included during instantiation of a class, allows you to "mix in" new capabilities to the class prototype. This is similar to the existing Ext.override function, although it does not replace existing methods like override does, it simply augments the prototype with whatever is new.       

 == java override Q?不过支持多ѝ?相同Ҏ取最后实现?br />

Statics

静态字D和Ҏ定义块?br />
Ext.define('Person',{
   statics:{
      staticAttribute:'静态变?Q?br />      staticFunction:
function(){
        
// 静态方?/span>
      }
   }
});

alert(Person.staticAttribute);

Config

q个理解?java 的pojo中的变量Q?可以自动生成以下ҎQ?以下代码摘官Ҏ?br />
usage
Ext.define('MyClass', {
    config: {
        title: 'Default Title'
    }
});
自动生成以下代码
title: 'Default Title',

getTitle: 
function() {
    
return this.title;
},

resetTitle: 
function() {
    
this.setTitle('Default Title');
},

setTitle: 
function(newTitle) {
   
this.title = this.applyTitle(newTitle) || newTitle;
},

applyTitle: 
function(newTitle) {
    
// custom code here
    // e.g. Ext.get('titleEl').update(newTitle);
}

用L使用环境  相关见API文
  • Ext.env.Browser
  • Ext.env.FeatureDetector
  • Ext.env.OS





a_alter 2012-04-06 14:32 发表评论
]]>
ExtJS4 -- 动态加?/title><link>http://m.tkk7.com/alter/articles/373459.html</link><dc:creator>a_alter</dc:creator><author>a_alter</author><pubDate>Fri, 06 Apr 2012 05:25:00 GMT</pubDate><guid>http://m.tkk7.com/alter/articles/373459.html</guid><description><![CDATA[<h4> ExtJS4  新特?/h4> <p> </p><div> <ul> <li id="ext-gen1354">Ext.define to create class definitions within the new system</li> <li id="ext-gen1349">Automatic dependency management and dynamic class loading</li> <li id="ext-gen1353">Mixins</li> <li id="ext-gen1350">Statics</li> <li id="ext-gen1352">New config option for Automatic setter / getter generation</li> </ul> <p> </p><div> <div> <h3> Library Inclusion methods</h3> <p id="ext-gen1530">When you unzip the Ext JS 4 download, you will see the following files:</p> <ol> <li> <p id="ext-gen1526"><code id="ext-gen1534">ext-debug.js</code> - This file is only for use during development. It provides the minimum number of core Ext JS classes needed to get up and running. Any additional classes should be dynamically loaded as separate files as demonstrated above.</p> </li> <li> <p id="ext-gen1527"><code>ext.js</code> - same as <code id="ext-gen1529">ext-debug.js</code> but minified for use in production. Meant to be used in combination with your application's <code>app-all.js</code> file. (see section <em>3</em>)</p> </li> <li> <p id="ext-gen1528"><code>ext-all-debug.js</code> - This file contains the entire Ext JS library. This can be helpful for shortening your initial learning curve, however <code>ext-debug.js</code> is preferred in most cases for actual application development.</p> </li> <li> <p id="ext-gen1531"><code>ext-all.js</code> - This is a minified version of <code id="ext-gen1533">ext-all-debug.js</code> that can be used in production environments, however, it is not recommended since most applications will not make use of all the classes that it contains. Instead it is recommended that you create a custom build for your production environment as described in section <em>3</em>.</p></li> </ol><p><span style="background-color: #ffffff; color: #0099cc;">了解不同js的用定?/span><span style="color: #99cc00; background-color: #ffffff;"></span><br /></p> </div> </div> <div> <h4>Class Loading</h4> </div><div>Ext 4 now includes a robust dynamic class loading system that also provides integrated dependency management. Again, this is an optional feature, but provides a couple of key benefits:</div> <p> </p><div> <ul> <li> <p id="ext-gen1367"><strong id="ext-gen1383">Dynamic loading</strong>: Classes can be loaded dynamically and asynchronously at runtime simply based on the dependency tree that Ext manages internally. This means that you can stop managing brittle blocks of manual include tags in HTML pages and simply let the class loader figure out what your page needs to run. This is mostly useful in the development environment when dependency flexibility is more important than page load speed.</p> </li> <li> <p id="ext-gen1368"><strong id="ext-gen1382">Dynamic build generation</strong>: For production, it's usually preferable still to compile down to a single (or few) build files. Since Ext now understands the entire dependency graph at runtime, it can easily output that graph as needed (for example, in the form of a custom build configuration). And even more importantly, this capability is not restricted to the Ext namespace. You can include any number of custom classes and namespaces in addition to Ext and as long as everything is defined using the class system Ext will be able to figure out how they all relate. In the very near future, any Ext developer will have one-click custom build capability that automatically manages the entire Ext + custom application class graph, even as it changes from one minute to the next, and only builds <em id="ext-gen1384">exactly</em> what's actually needed by the app.</p> </li> </ul> <p> </p><div> <p id="ext-gen1369">This dynamic loading is enabled simply by using Ext.define and by defining the dependencies in code using two <span style="color: #0099cc;">new class properties:</span></p> <ul> <li id="ext-gen1381"><span style="color: #0099cc;">requires:</span> The class dependencies required for a class to work. These are guaranteed to be loaded <span style="color: #0099cc;">prior to </span>the current class being instantiated.</li> <li id="ext-gen1372"><span style="color: #0099cc;">uses</span>: Optional class dependencies that are used by, but not required by, a class. These can be loaded <span style="color: #0099cc;">asynchronously </span>and <span style="color: #0099cc;">do not have to be available</span> for the class to be instantiated.</li> </ul> <p><span style="color: red;">W一U方?/span><br /> </p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000; ">        Ext.require([<br />             </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.grid.*</span><span style="color: #000000; ">'</span><span style="color: #000000; ">,<br />             </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.data.*</span><span style="color: #000000; ">'</span><span style="color: #000000; ">,<br />             </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.util.*</span><span style="color: #000000; ">'</span><span style="color: #000000; ">,</span><span style="color: #000000; "><br />       </span><span style="color: #000000; ">  ]);</span></div> </div> <p> </p> <p><span style="color: red;">W二U方?/span></p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">Ext.define(</span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.window.Window</span><span style="color: #000000; ">'</span><span style="color: #000000; ">, {<br />    extend: </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.panel.Panel</span><span style="color: #000000; ">'</span><span style="color: #000000; ">,<br /><br />    alternateClassName: </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.Window</span><span style="color: #000000; ">'</span><span style="color: #000000; ">,<br /><br />    requires: [</span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.util.ComponentDragger</span><span style="color: #000000; ">'</span><span style="color: #000000; ">, </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.util.Region</span><span style="color: #000000; ">'</span><span style="color: #000000; ">, </span><span style="color: #000000; ">'</span><span style="color: #000000; ">Ext.EventManager</span><span style="color: #000000; ">'</span><span style="color: #000000; ">],<br /><br /><img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" /><br /><br />});</span></div><p> </p> <p><br /> </p> </div> <p> </p> <p><br /> </p> <p><br /> </p> </div> <br /> <p> </p><img src ="http://m.tkk7.com/alter/aggbug/373459.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/alter/" target="_blank">a_alter</a> 2012-04-06 13:25 <a href="http://m.tkk7.com/alter/articles/373459.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://172pk.com" target="_blank">޹þþþƷ</a>| <a href="http://513net.com" target="_blank">߹ۿ</a>| <a href="http://783944.com" target="_blank">ۺ</a>| <a href="http://bbyy7.com" target="_blank">ٸƷһѶ̬</a>| <a href="http://w6626.com" target="_blank">պƷaӰԺ</a>| <a href="http://bb9234.com" target="_blank">ŮƵѹۿվ </a>| <a href="http://922eee.com" target="_blank">޾Ʒ˳3d</a>| <a href="http://91ttvv.com" target="_blank">Ʒ޾Ʒˬˬ</a>| <a href="http://66cws.com" target="_blank">޹㽶ˬAVƬþ </a>| <a href="http://juguanghr.com" target="_blank">޹Ʒһ</a>| <a href="http://meiluniao.com" target="_blank">ѹۿ</a>| <a href="http://hssw1688.com" target="_blank">޹պŮaaaaaaëƬ</a>| <a href="http://yg1617.com" target="_blank">Ʒ˳Ƶapp</a>| <a href="http://mosason.com" target="_blank">ˬִ̼վ </a>| <a href="http://maopiandao163.com" target="_blank">޹ƷԲĵӰ</a>| <a href="http://557265.com" target="_blank">òƵѿ</a>| <a href="http://taiyu18.com" target="_blank">޼Ӱ</a>| <a href="http://cjsyw123.com" target="_blank">ҹһƵ</a>| <a href="http://maopiandao163.com" target="_blank">ŮƵѿһ</a>| <a href="http://jimeng-99.com" target="_blank">޾ƷƬ߹ۿ</a>| <a href="http://ivr69.com" target="_blank">պƷþþþþ</a>| <a href="http://louqibang.com" target="_blank">2017</a>| <a href="http://770144.com" target="_blank">ÿ߹ۿapp</a>| <a href="http://slotvip24.com" target="_blank">avһ</a>| <a href="http://whxhjc.com" target="_blank">¸Ļ</a>| <a href="http://tuopumao.com" target="_blank">޳aƬ߹ۿ</a>| <a href="http://sdsupuchem.com" target="_blank">Ļwww˳</a>| <a href="http://yy1514.com" target="_blank">þ99þóѲ</a>| <a href="http://138site.com" target="_blank">޸Ƶ</a>| <a href="http://dqmovie.com" target="_blank">Ů˱ŮˬƵ</a>| <a href="http://paweax.com" target="_blank">Ƭѹۿþ</a>| <a href="http://fz166.com" target="_blank">޳aƬ߹ۿ</a>| <a href="http://ettedia.com" target="_blank">Ʒѹۿ</a>| <a href="http://dbyssw.com" target="_blank">˾Ʒձ11</a>| <a href="http://222xx8.com" target="_blank">aػƵƬƵ</a>| <a href="http://se969.com" target="_blank">պaƵ</a>| <a href="http://929119.com" target="_blank">2022</a>| <a href="http://jiajuco.com" target="_blank">avרavý</a>| <a href="http://xsdin.com" target="_blank">˳Ƶۿ</a>| <a href="http://www-75044.com" target="_blank">Ůƨվ</a>| <a href="http://666fzw.com" target="_blank">޻ɫվ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>