怎么样使用javascript打开word文件?
solution1:var cmd = new ActiveXObject('WScript.Shell');
cmd.Run('winword.exe C://test.doc');
solution2:
var wrd=new ActiveXObject("Word.Application");
wrd.visible=true;
wrd.Application.Activate();
wrd.Documents.Open("C://test.doc");
wrd=null;
本文地址:http://www.45fan.com/a/question/67892.html