——————————————————————————
<script type="text/javascript">
function printDoc(btn){ //打印功能
window.print(); //调用window的打印函数
}
</script>
——————————————————————————
<form action="" method="post" style="display:block; width: 200px;
height: 100px; border: 1px solid black;">
<br/>
<input type="button" value="打印" id="myPrintBtn" onclick="printDoc();"/>
</form>
——————————————————————————
时间: 2024-10-10 06:57:51