我正在使用Angular开发Web应用程序-为了能够与chrome和IE11一起工作,我使用火呼吸来隐藏ActiveX。我正在尝试注入html -但是没有创建插件
function activate() {
var headElement = document.getElementsByTagName('body')[0],
objNode = document.createElement("object");
objNode.setAttribute("id", 'plugin0');
objNode.setAttribute("type", "application/x-nvplayer");
headElement.appendChild(objNode);
}当我把这段代码粘贴到静态html文件中时,一切都能正常工作。
发布于 2014-10-13 23:00:15
有几件事
https://stackoverflow.com/questions/26329380
复制相似问题