Windows 10中,可以使用以下PowerShell脚本来禁用Internet Explorer的Javascript错误提示
禁用脚本调试器
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Internet Explorer\Main" -Name "Disable Script Debugger" -Value "yes"
禁用每个脚本错误的通知
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Internet Explorer\Main" -Name "Error Dlg Displayed On Every Error" -Value "no"
Write-Output "Javascript错误提示已禁用。"
@echo off
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Disable Script Debugger" /t REG_SZ /d "yes" /f > nul
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Error Dlg Displayed On Every Error" /t REG_SZ /d "no" /f > nul
echo Javascript错误提示已禁用。
标签:10,Explorer,禁用,Javascript,Error,Internet,Main From: https://www.cnblogs.com/suv789/p/17796191.html