|
[Ctrl+A 全選 注:如需引入外部Js需刷新才能執行]
neverModules - autocomplete
cross-browser
IE 6.0 - Opera 9.0 - - Mozilla 1.5.0Example list
- google suggest demo in this e.g
- response speed test, see this e.g
- using autocomplete in ajax, see this e.g
- neverModules online Document e.g
feature 特性(我英文較差,我就只寫一個單詞了...)
- speed. 速度
- style. speed style and google sugguest style. 兩種風格,速度風格和google sugguest風格,CSS可自己寫。
- cache. 緩存,提高速度和減少查詢
- function. 功能豐富
下列是本版autocomplete提供的一些屬性供選擇,可以在ajax的示例中看到
- * 使用了cache 功能,當敲入的字符數可以在cache中查到時,將不會向服務器發送請求。減輕服務器壓力
- * 使用空格匹配,一個空格字符相當于1個或多個字符(串)正如"codetome"網友提到的建議: 首先輸入e那么最后一個單詞 never-online bluedestiny renkailau 三個單詞都會出來,然后我按一下空格,再輸入n,文本框的字符是這樣:"e n",我的目的是想要搜索所有帶e而且帶n的所有單詞,結果應該是三個單詞都出來,并且每個單詞里的n和e都加黑。
- * 無論輸入字符串在dataSource的何處,始終匹配
- * 當數據量較大時,自動截取前部分的數據,提高效率
- * 忽略大小寫
- * 開啟方向鍵(小鍵盤)
Download source
click here to download this file, if the file is unavailable, pls email me, BlueDestiny[at]126.com, or Go hereHistory
2006 - 01: autocomplete beta
2006 - 09: autocomplete 0.10
2007 - 01: autocomplete 0.11
2007 - 03: autocomplete 0.12 betaKnown bug
JavaScript技術:autocomplete禁止自動完成功能,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。