HTML:
<iframe frameborder="0" id="printIframebBtn" name="printIframe" style="width:0;height:0;"></iframe>
最终版本:
$.ajax({
url: '/print/',
type: 'GET',
xhrFields: { responseType: 'blob' },
success: function (response) {
var href = window.URL.createObjectURL(response);
$("#printIframe").attr("src", href);
$("#printIframe").on("load", function () {
$("#printIframe")[