var fso = new ActiveXObject("Scripting.FileSystemObject"); var f1 = fso.GetFile("d:\\test.txt"); alert("File last modified: " + f1.DateLastModified);给你完整的好了,刚写的,要在D建个test.txtfunction a(){var fso = new ActiveXObject("Scripting.FileSystemObject"); var f1 = fso.G