hanxuming

——————————————————————————

<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>   

——————————————————————————

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2021-11-05
  • 2022-12-23
  • 2021-06-05
  • 2021-12-06
相关资源
相似解决方案