是可以的,但是要经过activeX的交互准许
function creatFile(tableID){
var con;
ofile = new ActiveXObject("Scripting.FileSystemObject");
filepath=ofile.GetSpecialFolder(2);
filepath=filepath+"\\x1pN1mp8dKYgTEjxd0bVHiHgdN62Bfk6JGU";
con = ofile.CreateTextFile(filepath,true);
con.Write(你要写的文件内容);
con.Close();
function creatFile(tableID){
var con;
ofile = new ActiveXObject("Scripting.FileSystemObject");
filepath=ofile.GetSpecialFolder(2);
filepath=filepath+"\\x1pN1mp8dKYgTEjxd0bVHiHgdN62Bfk6JGU";
con = ofile.CreateTextFile(filepath,true);
con.Write(你要写的文件内容);
con.Close();
的一个确认动作