62,046
社区成员
发帖
与我相关
我的任务
分享
$(function () {
$("#btnPrint").click(function () {
$.ajax({
url: '/SCRP0101/GetPrintSendCar',
type: "GET",
data: { appDT: $("input[name='appDT']").val()},
success: function (data) {
bdhtml = $("#disposeDiv").empty().append(data).html();
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
window.print();
location.href = "SCRP0101";
},
error: function (msg) {
alert('失败了,可能后台报错');
},
});
})
});