var fso=new CreateObject("Scripting.FileSystemObject");
var f=fso.CreateTextFile("d:\0000.txt");是不是javascript就没有Scripting这对象,浏览器就不支持这操作。