var fso, f, f1, ts, s, str, re;
fso = new ActiveXObject("Scripting.FileSystemObject");
var re = new RegExp("a[\w]{1}b","g");
var str = "ahbadbaybaubaib";
re.exec(str);
s = RegExp.$1;
s += "\r\n" + RegExp.$2;
s += "\r\n" + RegExp.$3;
s += "\r\n" + RegExp.$4;
s += "\r\n" + RegExp.$5;
s += "\r\n" + RegExp.$6;
s += "\r\n" + RegExp.$7;
s += "\r\n" + RegExp.$8;
s += "\r\n" + RegExp.$9;
f = fso.OpenTextFile("c:\file.txt", 2, true);
f.Write(s);
f.Close();
以上内容放进js文件里面,双击后,C盘的文件里面都是换行符,根本不出内容。按照上面理当出现ahb adb ayb等等。不知道什么原因。