[color=red]<%
String[] sa={"aaa1","aaaa2"};
%>
<br> var names = <%=sa%>;<br> .....[/color]<br> 如上面描述。我想把字符串数组传给javascriipt 得不到值啊。。</p> <p>但是光用String 就可以。<br> <% <br> String str="aaa";<br> %><br> <SCRIPT language=JavaScript type=text/JavaScript><br> var name = "<%=str%>";<br> .....<br> 清大家帮忙啊</p>