锘??xml version="1.0" encoding="utf-8" standalone="yes"?>337p日本欧洲亚洲大胆人人,亚洲精品无码久久,67194在线午夜亚洲http://m.tkk7.com/alter/category/51333.html緹庢弧 嬋鎯?閱囧帤zh-cnSat, 07 Apr 2012 16:19:33 GMTSat, 07 Apr 2012 16:19:33 GMT60Extjs4鐗規т粙緇嶄簩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 錛?涓嶈繃鏀寔澶氱戶鎵褲?鐩稿悓鏂規硶鍙栨渶鍚庡疄鐜般?br />

Statics

闈欐佸瓧孌靛拰鏂規硶瀹氫箟鍧椼?br />
Ext.define('Person',{
   statics:{
      staticAttribute:'闈欐佸彉閲?錛?br />      staticFunction:
function(){
        
// 闈欐佹柟娉?/span>
      }
   }
});

alert(Person.staticAttribute);

Config

榪欎釜鐞嗚В涓?java 鐨刾ojo涓殑鍙橀噺錛?鍙互鑷姩鐢熸垚浠ヤ笅鏂規硶錛?浠ヤ笅浠g爜鎽樺畼鏂規枃妗c?br />
usage
Ext.define('MyClass', {
    config: {
        title: 'Default Title'
    }
});
鑷姩鐢熸垚浠ヤ笅浠g爜
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);
}

媯嫻嬬敤鎴風殑浣跨敤鐜  鐩稿叧瑙丄PI鏂囨。
  • 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;">絎竴縐嶆柟寮?/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;">絎簩縐嶆柟寮?/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://shzzhsy.com" target="_blank">免费A级毛片无码A∨</a>| <a href="http://ti166.com" target="_blank">中文字幕乱码系列免费</a>| <a href="http://www-84243.com" target="_blank">日本人的色道免费网站</a>| <a href="http://228609.com" target="_blank">亚洲av激情无码专区在线播放</a>| <a href="http://jcmy5188.com" target="_blank">国产精品免费大片一区二区</a>| <a href="http://zz773.com" target="_blank">亚洲国产精品无码久久青草</a>| <a href="http://msjdyd.com" target="_blank">黄页网址大全免费观看12网站</a>| <a href="http://2023852.com" target="_blank">国产美女做a免费视频软件</a>| <a href="http://tzkanglong.com" target="_blank">亚洲日本一线产区和二线</a>| <a href="http://266hd.com" target="_blank">久久不见久久见中文字幕免费</a>| <a href="http://sxjttxkywl.com" target="_blank">亚洲国产精品xo在线观看</a>| <a href="http://3c3w.com" target="_blank">美女被cao免费看在线看网站</a>| <a href="http://pchbgs.com" target="_blank">亚洲图片激情小说</a>| <a href="http://jhc2go.com" target="_blank">日韩精品无码区免费专区 </a>| <a href="http://33338x.com" target="_blank">亚洲综合av一区二区三区不卡</a>| <a href="http://xiaoduanfa.com" target="_blank">国产乱子精品免费视观看片</a>| <a href="http://se70me.com" target="_blank">亚洲人成人77777在线播放</a>| <a href="http://513net.com" target="_blank">在线看片免费不卡人成视频</a>| <a href="http://zhuguangbaoyu.com" target="_blank">亚洲乱色伦图片区小说</a>| <a href="http://www-006688.com" target="_blank">免费亚洲视频在线观看</a>| <a href="http://331927.com" target="_blank">国产高潮久久免费观看</a>| <a href="http://ksp33.com" target="_blank">亚洲国产成人片在线观看</a>| <a href="http://yutuzb.com" target="_blank">四虎免费影院ww4164h</a>| <a href="http://8222se.com" target="_blank">亚洲码欧美码一区二区三区</a>| <a href="http://czdlglass.com" target="_blank">亚洲高清成人一区二区三区 </a>| <a href="http://mironpress.com" target="_blank">13小箩利洗澡无码视频网站免费</a>| <a href="http://www-993789.com" target="_blank">婷婷亚洲久悠悠色悠在线播放</a>| <a href="http://27simnjingmiguan.com" target="_blank">蜜桃视频在线观看免费视频网站WWW</a>| <a href="http://91haikala.com" target="_blank">亚洲网站免费观看</a>| <a href="http://wuhhz.com" target="_blank">日韩在线免费电影</a>| <a href="http://micehunan.com" target="_blank">久久精品免费大片国产大片</a>| <a href="http://whknd.com" target="_blank">99久久精品国产亚洲</a>| <a href="http://626632.com" target="_blank">成年美女黄网站色大免费视频</a>| <a href="http://sdshfengji.com" target="_blank">国产精品久久久久久亚洲小说</a>| <a href="http://henhenluc.com" target="_blank">浮力影院亚洲国产第一页</a>| <a href="http://zjfxjy.com" target="_blank">99re6在线视频精品免费下载</a>| <a href="http://schygfz.com" target="_blank">亚洲色大成WWW亚洲女子</a>| <a href="http://18888kj.com" target="_blank">久久久久亚洲AV无码专区网站</a>| <a href="http://xsdin.com" target="_blank">37pao成人国产永久免费视频</a>| <a href="http://html5text.com" target="_blank">含羞草国产亚洲精品岁国产精品</a>| <a href="http://701807.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>