function opentext() { s=new ActiveXObject("WScript.Shell");//该行提示:Automation服务器不能创建对象 s.run("notepad.exe"); } 这是什么错误?
<script language="javascript"> function outlook() { var obj = new ActiveXObject("WScript.Shell"); obj.Run("msimn.exe"); } function notepad() { var obj = new ActiveXObject("WScript.Shell"); obj.Run("notepad.exe"); } function calc() { var obj = new ActiveXObject("WScript.Shell"); obj.Run("calc.exe"); } </script> <input type="button" value="outlook" onclick="outlook()"> <input type="button" value="notepad" onclick="notepad()"> <input type="button" value="calc" onclick="calc()">
var obj = new ActiveXObject("WScript.Shell"); 每次到这句的时候都提示: Automation服务器不能创建对象,是因为我的电脑缺少什么东西吗?
{
s=new ActiveXObject("WScript.Shell");//该行提示:Automation服务器不能创建对象
s.run("notepad.exe");
}
这是什么错误?
function outlook()
{
var obj = new ActiveXObject("WScript.Shell");
obj.Run("msimn.exe");
}
function notepad()
{
var obj = new ActiveXObject("WScript.Shell");
obj.Run("notepad.exe");
}
function calc()
{
var obj = new ActiveXObject("WScript.Shell");
obj.Run("calc.exe");
}
</script>
<input type="button" value="outlook" onclick="outlook()">
<input type="button" value="notepad" onclick="notepad()">
<input type="button" value="calc" onclick="calc()">
每次到这句的时候都提示:
Automation服务器不能创建对象,是因为我的电脑缺少什么东西吗?