var v = document.createElement("div"); //向v中追加打印数据,可以将界面的元素追加进来 var h = window.open("打印窗口", "_blank"); h.document.write( $(v).prop("outerHTML")); h.document.close(); h.print(); h.close();
js打印指定元素内容
猜你喜欢
转载自www.cnblogs.com/bfyx/p/10058364.html
今日推荐
周排行