What have you found for these years?

2009-06-29

prototype vs jquery

prototype:
   1  for(var i=0; i<form.length; ++i)
2 if( form[i].type == 'checkbox' )
3 form[i].checked = flag ? true : false

jquery:
   1  checkbox.attr('checked', flag ? true : false)

老實講,jquery 讓我抓回一點寫 js 的樂趣,真的差很多..

2 retries:

Plumm said...

jquery 有沒有好的編輯器?

Lin Jen-Shin (godfat) said...

什麼樣的編輯器?
我是永遠的文字編輯器 + syntax highlight
寫啥都是

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0