php、打印

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>

<body>
<a onclick="isOk()">打印</a>
<script>
function isOk(){
if(confirm('是否开始打印?')){
window.print();
}else{
return false;
}
}
</script>
</body>

</html>

posted @ 2016-08-25 12:35  __Rain丶  阅读(175)  评论(0编辑  收藏  举报