28,391
社区成员
发帖
与我相关
我的任务
分享
function preview() {
var newstr = document.getElementById('myDiv').innerHTML;
//alert(newstr);
var oldstr = document.body.innerHTML;
document.body.innerHTML = newstr;
document.body.innerHTML = oldstr;
window.print();
}