解决方法如下:<%for i=0 to rs.recordcountif rs.eof then exit for%>array[<%=i%>] ="<%=rs("city")%>"<%rs.movenextnext%>
在后台把数据转换成json在发到前台