var attribute<%=e('+i+')%> = ["<%=a('+i+')%>","<%=b('+i+')%>" ,"<%=c('+i+')%>" ,"<%=d('+i+')%>"

解决方案 »

  1.   

    不行
    错误类型:
    Microsoft VBScript 编译器错误 (0x800A03EA)
    语法错误
      

  2.   

    <%
    dim total
    total =1
    dim e(0),a(0),b(0),c(0),d(0)
    e(0) ="0"
    a(0) ="0"
    b(0) ="0"
    c(0) ="0"
    d(0) ="0"
    %>
    <script language="javascript">
    for( var i=0 ; i<<%=total%> ; i++ )

    var temp = "attribute"+"<%=e(i)%>";
    alert(temp); temp = ["<%=a(i)%>","<%=b(i)%>","<%=c(i)%>","<%=d(i)%>"]


    </script>
      

  3.   

    谢谢风中的风了,不过我用另外的方法实现了,写在服务器端,用response.write解决了:)