亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

jQuery打印圖片pdf、txt示例代碼

 更新時(shí)間:2014年07月22日 17:15:03   投稿:whsnow  
本節(jié)主要介紹了jQuery打印圖片pdf、txt,需要的朋友可以參考下

html加如下代碼

<div style="display:none"> 
<div id="to_print"></div> 
<input type="button" id="print_button" value="Print" onclick="document.getElementById('FILEtoPrint').focus(); document.getElementById('FILEtoPrint').contentWindow.print();" /> 
</div> 

<script> 
function printSome(path){ //傳入文件路徑 
$("#to_print").html('<iframe src='+path+' id="FILEtoPrint"></iframe>'); 
setTimeout(function(){$("#print_button").click();}, 500); 
} 
</script>

web界面添加按鈕調(diào)用js即可

相關(guān)文章

最新評(píng)論