var objdbConn = new ActiveXObject("ADODB.Connection");
需要权限。
运行下面的js,然后重新启动IE(从桌面的图标上打开):
change.js:
----------
var WSHShell = WScript.CreateObject("WScript.Shell");
if(Number(WSHShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0\\1201"))==1)
{
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0\\1201","0","REG_DWORD");
WScript.Echo("Warning:\n The My Computer Zone's Safe Setting have been changed a little.\n The item of initial and script running of the unmarked safty ActiveX component has been changed from notion to use.");
}
else
{
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0\\1201","1","REG_DWORD");
WScript.Echo("Warning:\n The My Computer Zone's Safe Setting have been changed a little.\n The item of initial and script running of the unmarked safty ActiveX component has been changed from use to notion.");
}