JavaScript Print Controls
GitHub Address
Https://github.com/DoersGuild/jQuery.print
Need to introduce jquery before use
$ ("#mapDiv"). Print ({ globalstyles:true,//) contains the style of the parent document, and the default is True mediaprint:false,//contains the link label for media= ' print '. Is overridden by the Globalstyles option, which defaults to False stylesheet:null,//the URL address of the external style sheet, which defaults to null noprintselector: ". No-print",// The jquery selector for elements that you do not want to print, the default is ". No-print" iframe:true,//whether to use an IFRAME instead of a pop-up window to print the form, true to print on this page, false to open a new page, The default is True append:null,//add content to the back of the print prepend:null,//add content to the front of the print content, which you can use as the deferred to print the content : $. Deferred ()//callback function});
Can be agreed across the IFRAME inside
JavaScript Print Controls