DWR
文檔之
util.js
Filed under: AJAX, DWR — Jet @ 3:26 pm
原文出處
: http://www.javatang.com/archives/2006/04/26/261321.html
翻譯
: Jet Mah
聲明
:
請維持文章的完整性任意轉載
util.js
util.js
包含許多工具類函數
,
這些函數可以協助你在網頁中使用
javascript
數據
(
這些數據可能是從服務器短返回的
).
因為是不依賴
DWR
的
,
所以你可以在
DWR
之外使用這些函數
.
你即可以同
DWR
一起下載它
,
也可以單獨下載
.
四個基礎的操作函數
: getValue[s]()
和
setValue[s]()
使用于除表格
(tables)
、列表
(lists)
和圖像
(images)
之外的
HTML
元素中
. getText()
使用于下拉列表中
(select lists).
編輯表格可參考
addRows()
和
removeAllRows().
編輯列表
(select lists
或
ul, ol lists)
可參考
addOptions()
和
removeAllOptions().
$()
addOptions and removeAllOptions
addRows and removeAllRows
getText
getValue
getValues
onReturn
selectRange
setValue
setValues
toDescriptiveString
useLoadingMessage
英文出處
:
http://getahead.ltd.uk/dwr/browser/util
DWR
文檔翻譯文檔列表
:
http://www.javatang.com/dwr-chinese-documents/
posted on 2006-10-24 11:02
周銳 閱讀(318)
評論(0) 編輯 收藏 所屬分類:
Ajax