function AllAreaWord()
{
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(statContent); //sel.select();
sel.execCommand("Copy");
oRange.Paste();
oWD.Application.Visible=true;
//window.close();
}这是copy页面table到word的,包括颜色都可以copy里面,有没有能直接copy到excel里面的?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货