'如果长度 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
'如果未找到提示,则输出 "no suggestion"
'or output the correct values
if hint="" then
response.write("no suggestion")
else
response.write(hint)
end if
%>
源代码解释:
如果 JavaScript 发送了任何文本(即 strlen($q) 大于 0),则会发生: