ActiveXObject creation error “ Automation server can't create object”

前端 未结 6 1470
予麋鹿
予麋鹿 2020-12-09 10:18

I have a very simple javascript code,



        
6条回答
  •  抹茶落季
    2020-12-09 10:59

    This is caused by Security settings for internet explorer. You can fix this,by changing internet explorer settings.Go To Settings->Internet Options->Security Tabs. You will see different zones:i)Internet ii)Local Intranet iii)Trusted Sites iv)Restricted Sites. Depending on your requirement select one zone. I am running my application in localhost so i selected Local intranet and then click Custom Level button. It opens security settings window. Please enable Initialize and script Activex controls not marked as safe for scripting option.It should work.

    enter image description here

    enter image description here

提交回复
热议问题