Posted in Javascript onFebruary 16, 2011
$('#eTableWord').click( function() { var oWD = new ActiveXObject("Word.Application"); var oDC = oWD.Documents.Add("", 0, 1); var oRange = oDC.Range(0, 1); var sel = document.body.createTextRange(); sel.moveToElementText(dataTable); sel.select(); sel.execCommand("Copy"); oRange.Paste(); oWD.Application.Visible = true; });
基于jquery的复制网页内容到WORD的实现代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@