摘要:
<!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title>First C</title> </head> <body> <h1 >hello world</h1> <input type="button" value="clickme 阅读全文
摘要:
//判断图片是否存在 function checkImgExists(imgurl) { var ImgObj = new Image(); //判断图片是否存在 ImgObj.src = imgurl; //存在图片 if (ImgObj.fileSize > 0 || (ImgObj.width 阅读全文
摘要:
您可以重复使用粘贴在 Microsoft站点上的代码,并根据您的需要对其进行调整(也就是编辑远程计算机的名称和脚本的文件名): strRemoteComputer = "RASServer01" strWorkerScript = "MapNetworkDrive.vbs" 设置 objWshCon 阅读全文
摘要:
PowerBuilder与嵌入浏览器交互 设置为可以编辑: //ole_1.object.document.GetElementById("user").contentEditable = true boolean bEdit bEdit = ole_1.object.document.body.c 阅读全文
摘要:
方法1:在当前文件中读取 //读取公用函数所在的文件 eval(new ActiveXObject("Scripting.FileSystemObject").OpenTextFile("common.js", 1).ReadAll()); 方法2:使用wsf主文件中包含 <job id="main 阅读全文
摘要:
CreateShortcut Method See Also Running Your Scripts | WshShortcut Object | WshUrlShortcut Object | WshShell Object Creates a new shortcut, or opens an 阅读全文
摘要:
如何在一个Jscript脚本中包含两外的一个Jscript脚本?可以这样做: var tsvar fso = new ActiveXObject( "Scripting.FileSystemObject" );var ForReading = 1;ts = fso.OpenTextFile("c:\ 阅读全文
摘要:
var console = { log: function (txt) { WScript.Echo(txt); }}; var FileSystemObject = function () { this.fso = new ActiveXObject("Scripting.FileSystemOb 阅读全文
摘要:
var console = { log: function (txt) { WScript.Echo(txt); } }; var TextStream = function () { this.handle = null; this.create = function (filename, ove 阅读全文
摘要:
// JavaScript source code// JScript source code var console = { log: function (txt) { WScript.Echo(txt); }} function Recordset(h){ this.commandText = 阅读全文