日期:2014-05-16 浏览次数:20320 次
var conn=new ActiveXObject("Adodb.Connection"); var rs=new ActiveXObject("Adodb.Recordset"); conn.ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source="+ "d:/school.accdb;Persist Security Info=False;"+""; conn.open(); var sql = "select * from student"; rs.open(sql,conn); while(!rs.eof){ alert(rs(1)); rs.moveNext(); } rs.close(); conn.close();