日誌 - tacoball 的日誌
 訂閱 tacoball 的日誌

2006/06/02
關於javascript 的兩三事

作者: tacoball (05:19:17)
James McParlaneJames McParlane今天有一篇文章談到了一些不該在javascript中作的一些行為。

ajaxian有整理了一下,在下面轉述:
1. Don’t use Object.prototype to extend the base ‘Object’.
2. Don’t use ‘Array’ for an Associative Array
3. There are two types of Library ‘Primary’ or ‘Secondary’. James sees Dojo, Prototype, et al becoming “primary” libraries on which other, more specialized libraries, build.
4. Port code that uses ‘Array’ for Associative Arrays. (Use objects and not Arrays for associative array behavior.)
5. Write JavaScript Tools That Warn Of Rule Violations.

不是很明白為什麼,還在看@@
在這裡記錄一下ccc
閱讀 tacoball 的日誌 | 迴響 (0) | 引用次數 (0) | 瀏覽次數 (2716)
列印這一篇日誌 發送這篇日誌給你的朋友(Email)
網友個人意見,不代表本站立場,對於發言內容,由發表者自負責任。
發表評論
評論規則*
任何人都可以發表評論
標題*
姓名*
信箱*
網站*
內容*
確認碼*
9 - 5 = ?  
輸入運算式的結果
您最多可以嘗試:10 次

日誌月曆

        

會員登入

小老虎成長中

小小龍成長中

搜尋




JUMP to TOP - 13.05.2024 -