<script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript" src="jquery.PrintArea.js"></script> <script> $(document).ready(function(){ $("input#biuuu_button").click(function(){ $("div#myPrintArea").printArea(); }); }); </script> <input id="biuuu_button" type="button" value="打印"></input> <div id="myPrintArea">.....文本打印部分.....</div>
转载请注明:苏demo的别样人生 » jQuery实现(支持局部打印)