<script language="JavaScript">/*All Files are Designed & Writen by Windy_sk, you can use it freely but ...YOU MUST KEEP THIS ITEM !Email: <a href="mailto:windy_sk@126.com">windy_sk@126.com</a>*/var ie =
<script Language="JavaScript1.2">/*All Files are Designed & Writen by Windy_sk, you can use it freely but ...YOU MUST KEEP THIS ITEM !Email: <a href="mailto:windy_sk@126.com">windy_sk@126.com</a>*///基本參數設定var step = 20;var
<SCRIPT LANGUAGE="JavaScript">/*All Files are Designed & Writen by Windy_sk, you can use it freely but ...YOU MUST KEEP THIS ITEM !Email: <a href="mailto:windy_sk@126.com">windy_sk@126.com</a>*/function
看了itcast裡面老師的講課,下面是我一些體會CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->(function(){ window['czf'] = {}\\ 命名空間 var $$= function(){ alert('這個是私人的方法');
聯合使用建構函式和原型方式,就可像用其他程式設計語言一樣建立對象。這種概念非常簡單,即用建構函式定義對象的所有非函數屬性,用原型方式定義對象的函數屬性(方法)。結果所有函數都只建立一次,而每個對象都具有自己的對象屬性執行個體 CodeCode highlighting produced by Actipro CodeHighlighter
function sort(photoes) { var temp, j; for (var i = 1; i < photoes.length; i++) { if (compare(photoes[i], photoes[i - 1]) == -1) { temp = photoes[i]; j = i - 1; do { photoes[j + 1] =
最近正在做的項目中,前台的javascirpt模組之間的互動比較多,就用到了設計模式中的觀察者模式。在學習和使用觀察者模式時,發現觀察者模式其實是事件驅動的原型。c#的事件驅動也算是觀察者模式的一種變種吧(不知理解是否正確,希望高手指點)。javascirpt的extjs架構的時間驅動的原型也是觀察者,因此,觀察者模式在模組間互動時可以隔離變化,實現高內聚,低耦合。下面是My Code<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0