自動完成功能 asp ajax

2021-04-19 02:01:59 字數 717 閱讀 7371

目錄頁

}伺服器端

<%response.charset="gb2312" %>

<%

gjz=request.querystring("gjz")

gjz=replace(gjz,",","")

str1="狐狸,白狐,銀狐,水貂,獺兔,貉子,白貉,烏蘇里貉,美國水貂,白兔,鳥,養殖,技術,魚,海魚,淡水魚"

str2=split(str1,",")

str3=""

for i=0 to ubound(str2)-1

if(instr(str2(i),gjz)>0) then

if(str3="") then

str3=str2(i)

else

str3=str3 & "," & str2(i)

end if

end if

next

response.write str3

%>

自動完成功能

先放個吧!這是最終的效果!下面具體 index.php 把需要的js 庫包含進來 keywords here new capxous.autocomplete keyword function 這裡是具體呼叫的 auto.php header content type text html chars...

自動完成功能

先放個吧!這是最終的效果!下面具體 index.php 把需要的js 庫包含進來 keywords here new capxous.autocomplete keyword function 這裡是具體呼叫的 auto.php header content type text html chars...

Ajax自動完成功能

近日學習了一下ajax,照做了幾個例子,感覺比較新奇。第乙個就是自動完成的功能即autocomplete,具體的例子可以在這裡看 http www.b2c battery.co.uk 在search框內輸入乙個產品型號,就可以看見效果了。這裡用到了乙個開源的 autoassist 有興趣的可以看一下...