PrintArea -


未知
未知

软件简介

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();