ASP调用JS的疑惑
<script language="JavaScript">function save(){
<%
dim rs
set rs=server.CreateObject("adodb.recordset")
rs.source="select * from test"
rs.open rs.source,conn,1,3
%>
var s = document.getElementById("classname").innerHTML;
s = s.split("\r\n");
for(var i = 0 ; i < s.length ; i ++){
<%rs.addnew%>
<%rs("classname")=s[i]%> '这个位置老是调试不对,怎么改也不对,不知道哪里出了问题,请高手们指点一下!
<%rs.update%>
}
}
</script>