本文介绍了打开ms word / excel应用程序而不使用activeXObject进行跨浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function OpenFile(){
alert ('Work');
//would like to modify ActiveXObject with any other object for cross-browser.
var x = new ActiveXObject("WScript.Shell");
x.run('winword.exe');
}
//Above code works only in IE. But don't want to use activeXObject.
//Is there any possibility to open a word file in Internet Explorer
//without using activexobject. Request for a solution.
推荐答案
这篇关于打开ms word / excel应用程序而不使用activeXObject进行跨浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!