jsGears.com 技術論壇 - AJAX, JavaScript, jQuery, 網站開發, 前端效能優化's Archiver

wmh 發表於 2007-11-16 08:50

你有多熟悉 Prototype JS 呢?

Prototype JS 在本年度的 [url=http://jsgears.com/thread-50-1-1.html]Ajaxian 調查結果[/url]中,仍然是 JavaScript Library 使用的榜首,相信很多人有用過。

但是,你確定你瞭解 Prototype 嗎? 來個小小的測驗,下面的 code 用法正確嗎?[code js]//取得一個欄位的值
var woot = $('bar').value[/code]

如果你的答案是以上正確,那麼,你可能要再重新認識一下 Prototype 了,因為你曾經看過的教學可能是比較早期的版本,如果你僅僅將 $ 用來當成 document.getElementById() 的縮寫,那就太遜囉,趕快來看一下這兩篇教學,一定會大有幫助的。

[url=http://thinkweb2.com/projects/prototype-checklist/]How well do you know prototype[/url]
[url=http://thinkweb2.com/projects/prototype/2007/08/12/how-well-do-you-know-prototype-part-ii/]How well do you know prototype (part II) [/url]

頁: [1]

Powered by Discuz! Archiver  © 2001-2009 Comsenz Inc.