How to config IE to make “wscript.shell” work

前端 未结 3 787
心在旅途
心在旅途 2020-12-03 13:00

I have some code that used to work. But I today when I try it again. I kept got \"[object error]\".

I thought it\'s the problem of IE safety configure. But I can

3条回答
  •  天命终不由人
    2020-12-03 13:05

    It may be necessary to make a change to the IE settings:

    For example, for the Local intranet zone, you typically need to change a custom setting to "Initialize and script ActiveX controls not marked as safe for scripting."

    I couldn't get the sample above to run without making the change.

提交回复
热议问题