接上一篇,現在進行第二部分。 開始之前,還是說說前文提到的關於把所有函數都寫在一個閉包內的最佳化問題。前文也提到了,因為我們在初始化的時候要調用的只是init,所以可以只把init寫入閉包,其他功能函數作為init的原型繼承方法來調用。所以前文的代碼其實可以這樣改寫: 複製代碼 代碼如下:var Hongru={}; function H$(id){return document.getElementById(id)} function H$$(c,p){return
a.txt 代碼: [Promise don't come easy] I should have known all along. There was something wrong. I just never read between the lines. Then I woke up one day and found you on your way. Leaving nothing but my heart behind. What can I do to make it up
複製代碼 代碼如下:SELECT TableName = OBJECT_NAME(c.object_id), ColumnsName = c.name, Description = ex.value, ColumnType=t.name, Length=c.max_length FROM sys.columns c LEFT OUTER JOIN sys.extended_properties ex ON ex.major_id = c.object_id AND ex.minor_id =
如果你只想下載現成的用,可以到這個頁面上去找。許可證是“WTFPL”,也就是“Do What The Fuck You Want To Public License”。原始碼如下(因為有注釋,就不另外說明了): 複製代碼 代碼如下:public static class PageNumExt { /// <summary> /// 使用傳入的委託計算併產生友好的頁碼。 /// </summary> /// <param name="o"></param&
大家可以使用官方推薦的一下幾個外掛程式複製代碼 代碼如下:While Thickbox had its day, it is not maintained any longer, so we recommend you use some alternatives. * colorbox * jQueryUI Dialog * fancybox * DOM window * shadowbox.js
例如: Internet Explorer 6.0+ Firefox 2.0+ Opera 9.0+ Safari 3.0+ Google Chrome 1.0+ Konqueror 3.5+ 使用qTip可以很輕鬆的定義tip的位置以及樣式,同時qTip還有一個強大的API...... 使用qTip前,只需引入兩個JS檔案即可: 複製代碼 代碼如下:<script type="text/javascript"