请教asp服务端的字符串数组怎么传递给jscript(客户端)
第一段和第二段都可以传递,但是第三为文字字符串后就不可以,究竟是何原因,盼望高人指导啊,急死我了!!!!
===============================
<%
dim aa(2)
aa(0)=1
aa(1)=2
aa(2)=3
dim ss
for i=0 to ubound(aa)
ss = ss&CStr(aa(i))& ", "
next
sss = left(ss,len(ss)-1)
%>
<script language=javascript>
var aa = [ <%=sss%> ];
alert(aa);
</script>
=====================================
<%
dim aa(2)
aa(0)= "1 "
aa(1)= "2 "
aa(2)= "3
dim ss
for i=0 to ubound(aa)
ss = ss&CStr(aa(i))& ", "
next
sss = left(ss,len(ss)-1)
%>
<script language=javascript>
var aa = [ <%=ss%> ];
alert(aa);
</script>
=====================================
<%
dim aa(2)
aa(0)= "文字1 "
aa(1)= "文字2 "
aa(2)= "文字3 "
dim ss
for i=0 to ubound(aa)
ss = ss&CStr(aa(i))& ", "
next
sss = left(ss,len(ss)-1)
%>
<script language=javascript>
var aa = [ <%=ss%> ];
&n