教程集 www.jiaochengji.com
教程集 >  jQuery  >  jQuery 插件  >  正文 PrintArea

PrintArea

发布时间:2014-05-25   编辑:jiaochengji.com
Prints a specified element. This is a modification to jPrintArea (http://plugins.jquery.com/project/jPrintArea). I found that jPrintArea, although a great starting idea and starting point, was lacking. In my case the iframe was not being removed from the
Prints a specified element.This is a modification to jPrintArea (http://plugins.jquery.com/project/jPrintArea). I found that jPrintArea, although a great starting idea and starting point, was lacking. In my case the iframe was not being removed from the dom, as the wait() method was causing a javascript error. In my first attempt at improving the initial plugin I used a setTimeout to remove the iframe, however, if a timer is used to remove the iframe, and the print or cancel is not chosen prior to the removal of the iframe, the browser would hang. Hope this is useful...Use$(selector).printArea();

您可能感兴趣的文章:
PrintArea
web的各种前端打印方法之jquery打印插件PrintArea实现网页打印
php如何实现打印功能
js调用iframe实现打印页面内容的方法
web的各种前端打印方法之jquery打印插件jqprint实现网页打印
golang接口的使用场景_如何在Go中使用接口

[关闭]
~ ~