if (result != "") { iframeid.document.write(result); iframeid.document.execCommand('print'); window.self.close(); } 这个代码改成西面的试试 if (result != "") { var iframeid = document.getElementById('flyso').contentWindow; iframeid.document.body.innerHTML = result iframeid.print(); }
if (result != "") { var iframeid = document.getElementById('flyso').contentWindow; iframeid.document.body.innerHTML = result iframeid.print(); }亲,为什么这样写调不出打印机啊?
iframeid.document.write(result);
iframeid.document.execCommand('print');
window.self.close();
}
这个代码改成西面的试试
if (result != "") {
var iframeid = document.getElementById('flyso').contentWindow;
iframeid.document.body.innerHTML = result
iframeid.print();
}
if (result != "") {
var iframeid = document.getElementById('flyso').contentWindow;
iframeid.document.body.innerHTML = result
iframeid.print();
}亲,为什么这样写调不出打印机啊?
window.frames["flyso"].focus();
window.frames["flyso"].print()
http://scriptx.meadroid.com/