链接:

https://helloacm.com/include-external-files-in-vbscriptjscript-wsh/

 

代码示例:

functionInclude(jsFile) 
{
varfso, f, s;
fso
= new ActiveXObject("Scripting.FileSystemObject");
f
=fso.OpenTextFile(jsFile);
s
=f.ReadAll();
f.Close();
return(s);
}

eval(Include(
"File.js"));

 

标签: none

添加新评论