Closure Library tutorial心得

教學網頁: http://code.google.com/intl/en/closure/library/docs/tutorial.html

心得:
  1. document.getElementById('div id');
  2. function定義後面要加;
  3. goog.dom.createDom(tag, attr, childptr);
  4. Java Script prototype!! 難懂的一個概念. 現在大概的理解是用Function new出來的object, 如果要他們有一個跨object的method, 要加prototype字樣來指定. (這句是什麼鬼啊? 自己都看不懂.)
  5. goog.dom.appendChild(parent, child);
  6. goog.ui.Zippy(title, content);

留言

這個網誌中的熱門文章

Google Phone跟iPhone的比較!?

我第一個Android程式上架了...