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