请问为什么我用wscript 会提示我undefined呢? 对象没找对吧?怎么不把代码贴出来让大家帮你看呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我原来就只有一个js文件,运行的好好的。里面是这样写的:var shell = WScript.CreateObject("wscript.Shell");但我加了一个html文件就不对了。html文件是这样的:<html><head><meta name="GENERATOR" content="Microsoft FrontPage 6.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Testing Script</title><script language="JavaScript1.2" src="../script/RUI_c_test.js"></script><script id=clientEventHandlersJS language=javascript><!-- function RunTestScript() { var oNewEvent = document.createEventObject; var whichCode = oNewEvent.keyCode; alert("Activate the RUI Client Window, Key will be sent to that window!."); alert("Action!"); while (whichCode != 0x1d) { TestScript(); } alert( "End!"); Quit(); }////--></script></head> 我不知道贴这些代码,清不清楚。全贴就太多了。谢谢。 移动设备不能一次渲染整个网页?? 如何让<div><table></table></div>这个结构获得滚动条 !DOCTYPE 的区别! 我这个删除多行,怎么会不行呢 推荐8款简单大气的JQuery/CSS3图片特效焦点图 [求助]一个非常简单问题,谢谢 帮助 有没有什么办法可以让上网助手之类工具的拦截广告功能无效? 求JScript电子书 SOS(也许对你来说很简单) 如何在网页的客户端打印msflexgrid控件中的内容? 如何动态产生一行的控件? 如何改变alert()或confirm()对话框按钮的显示文本
var shell = WScript.CreateObject("wscript.Shell");
但我加了一个html文件就不对了。
html文件是这样的:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Testing Script</title>
<script language="JavaScript1.2" src="../script/RUI_c_test.js"></script>
<script id=clientEventHandlersJS language=javascript>
<!--
function RunTestScript()
{
var oNewEvent = document.createEventObject;
var whichCode = oNewEvent.keyCode;
alert("Activate the RUI Client Window, Key will be sent to that window!."); alert("Action!");
while (whichCode != 0x1d)
{
TestScript();
}
alert( "End!");
Quit();
}//
//-->
</script></head>
谢谢。