auto=1立即PRINT,否则timeOut毫秒后PRINT,如printPage; function printPage($auto=1,$timeOut=10000) { if { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if { window.print(); } else { alert('No printer driver in your PC'); } // End -- > < /script > n"; } else { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if { setTimeout','$timeOut'); } else { alert('No printer driver in your PC'); } function printCheck() { agree = confirm; if ; } // End -- > < /script > n"; } }
本文由威尼斯888发布于计算机网络 / 编程,转载请注明出处:用在PHP里的JS打印函数_php基础_脚本之家
关键词: