查看Compatibility changes in IE11,我们将window.execScript替换为eval。现在,当使用IE COM对象时,我们如何获得具有eval函数的JavaScript Global Object?
的PowerShell:
$ie = New-Object -COM InternetExplorer.Application
$document = $ie.document
$window = $document.parentWindow
# How to get JavaScript Global Object from these?
另请参阅此相关question。