百度友情链接: 百度[www.baidu.com]

"; var printData = $(".article").innerHTML;// 获得 div 里的所有 html 数据 var oldstr = document.body.innerHTML; document.body.innerHTML = headstr+printData+footstr; window.print(); document.body.innerHTML = oldstr; return false; }