大家好,我是asp classic和jquery的新手,我只是想知道是否有一种方法可以将我的集合变量传递给jquery。我的目标是让变量一次下滑一个。我在 jquery 上遇到了 .slideDown 函数,所以我尝试使用它,但似乎不起作用,所以我猜我的标记出了什么问题......任何帮助将不胜感激。
ASP 代码:
<%
Dim objDictionary, Key,searchWord, myVar,a,i, break
searchWord = request.QueryString("searchWord")
break = Response.write("<br />")
Set objDictionary = CreateObject("Scripting.Dictionary")
objDictionary.CompareMode=1
objDictionary.Add "Hello","hello"
objDictionary.Add "Age","age"
objDictionary.Add "height","height"
objDictionary.Add "sample","sample"
objDictionary.Add "words","words"
if objDictionary.Exists(searchWord) then
objDictionary.Remove(searchWord)
a = objDictionary.Keys
for i=0 to objDictionary.Count-1
Response.Write(a(i))
break
next
set objDictionary=nothing
else
a = objDictionary.Keys
for i=0 to objDictionary.Count-1
Response.Write(a(i))
break
next
set objDictionary=nothing
end if
%>
查询代码:
<script type="text/javascript">
$(document).ready(function(){
$("#toFall").slideDown("slow");});
</script>