元素操作
- Element.toggle:交替顯示或隱藏
- Element.hide:隱藏元素
- Element.show:顯示元素
- Element.remove:刪除元素
- Element.getHeight:取得高度
插入與表單
- Insertion.Before:在元素前插入內容
- Insertion.After:在元素後插入內容
- Insertion.Top:插入到元素內部最前
- Insertion.Bottom:插入到元素內部最後
- Field.clear:清空輸入框
- Field.focus:聚焦輸入框
- Form.serialize:序列化表單
- $F:讀取值
效果與Ajax
- Effect.Highlight:高亮
- Effect.Fade:淡出
- Effect.Scale:縮放
- Ajax.Request:發送請求
- Ajax.Updater:用響應更新容器
prototype.js通過Class方式封裝常用操作,new加方法名即可調用。