<button onclick="Printpart()">打印</button>
<script type="text/javascript" language="javascript">
function Printpart()
{
document.body.onload
=window.print();
//onload
}

</script>

  这是点击按钮打印  

你要是直接到那个页面就打印的话  只需  直接在body里面加上onload就行

<body onload="window.print()"></body>

  

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-12-20
  • 2022-12-23
  • 2021-12-02
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
相关资源
相似解决方案