function updateUser(userId,Name) { var conn = new ActiveXObject("ADODB.Connection"); conn.Open("DBQ=F://abc.mdb;DRIVER={Microsoft Access 驅動程式(*.mdb) };"); var rs = new ActiveXObject("ADODB.Recordset"); var sql="update Student set StuName='" userName "' where Id=" userId ""; conn .execute(sql); conn.close(); conn = null; alert("修改成功"); } 腳本>