打印iframe内容

function doPrint() {
if (window.frames['winConBillIframe'] != null) {
document.getElementById('winConBillIframe').focus();
document.getElementById('winConBillIframe').contentWindow.print();
}
else {
window.frames['winConBillIframe'].focus();
print();
}
}
原文地址:https://www.cnblogs.com/oltra/p/6077872.html