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>