function Print() {
$.ligerDialog.confirm('确定要打印吗?', true, function (yes, value) {
if (yes) { var oldhtml = document.body.innerHTML;
document.body.innerHTML = document.getElementById('Print_DIV').outerHTML;
window.print();
window.close();
.innerHTML
document.body.innerHTML = oldhtml; }; }); }
只打印 此DIV内容
<div class="fuji" id="Print_DIV" >
<%--打印内容--%>
</div>