你的table.js文件有问题,参考
在"d:\web"目录下,建立一个子目录lib,在这个目录建立一个文本文件,文件名为"table.js",文件内容为:
function edit(){
location="edit.htm?page=" + table1.pagenumber + "&key=" + table1.primarykey;
}
function del(){
location="delete.htm?page=" + table1.pagenumber + "&key=" + table1.primarykey;
}
function addnew(){
location="addnew.htm?page=" + table1.pagenumber;
}