jquery.print.js is a plugin for printing specific parts of a page.
Use it like:
$("#myElementId").print(/*options*/);
or
$.print("#myElementId" /*, options*/);
示例:
$("#myElementId").print({
            globalStyles: true,
            mediaPrint: false,
            stylesheet: null,
            noPrintSelector: ".no-print",
            iframe: true,
            append: null,
            prepend: null,
            manuallyCopyFormValues: true,
            deferred: $.Deferred(),
            timeout: 750,
            title: null,
            doctype: '<!doctype html>'
    });