'查看数组中所有 hint,q 的长度是否大于 0
if len(q)>0 then
hint=""
for i=1 to 30
if q=ucase(mid(a(i),1,len(q))) then
if hint="" then
hint=a(i)
else
hint=hint & " , " & a(i)
end if
end if
next
end if
'如果未找到 hint,输出 "no suggestion",或输出正确的值
if hint="" then
response.write("no suggestion")
else
response.write(hint)
end if
%>
AJAX PHP
AJAX 数据库
JavaScript 和 HTML DOM 参考手册
JavaScript 实例
JavaScript 测验
JavaScript 高级教程