There has been a lot of talk lately about how Deferreds should be implemented in jQuery and the strong belief they should be implemented following Kris Zyp’s Promise/A proposal.I’m inbetween trains at the moment (Paris –> Brussels –> London
此模組用於提供自訂事件,並把實現此介面的對象變成一個事件發送器。//==================================================// 事件發送器模組//==================================================(function(global,DOC){ var dom = global[DOC.URL.replace(/(#.+|\W)/g,'')];
jQuery的$符號非常神奇,它可以接受一個字元,也可以接受一個文檔對象或window對象,亦可以傳個函數進行變為domReady載入器。顯然,能做到這一步,其實現是相當的複雜,這個實現就是它的init方法,jQuery的真實構造器。它功能也隨著版本的升級而升級,越來越長。 2009-01-13發布的1.3版init: function( selector, context ) { // Make sure that a selection was provided
Thumb: 捲軸裡面的小方塊,能向上向下移動(或往左往右移動,取決於是垂直捲軸還是水平捲軸)。This is the piece that shows you where you are in the scrollbar. This is the chap that you can move aroundTrack: 捲軸的軌道(裡面裝有Thumb)。This is the area of the scrollbar that you can move the thumb up and
On Mon, 18 Oct 2010 01:01:00 +0200, Chris Pearce <chris@pearce.org.nz> wrote: In the description of the media ready states for HAVE_ENOUGH_DATA [1],the spec says:If the autoplaying
mass Framework的記憶體對象緩衝系統,它會在目標對象或目標對象對應的代理對象添加一個uniqueID ,用於關鏈相應的緩衝體。通過dom.data把資料儲存到相應的緩衝體中去。//==================================================// 資料緩衝模組//==================================================(function(global,DOC){ var dom = global[
此模組此用於屏蔽DOM事件的瀏覽器差異的,並提供強大的事件代理機制(delegate,undelegate,live,die)://==========================================// 事件模組 by 司徒正美 2011.8.21//==========================================(function(global,DOC){ var dom = global[DOC.URL.replace(/(#.+|\W)/g,'