本文实例讲述了JS实现获取word文档内容并输出显示到html页面。分享给大家供大家参考,具体如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
[removed]
var w = new ActiveXObject('Word.Application');
var docText;
var obj;
if(w != null) {
w.Visible = true;
obj = w.Documents.
1