lodop官网地址:http://www.lodop.net/index.html
在使用lodop控件之前,请先安装官网上自带的.exe执行文件,然后再html中引入LodopFuncs.js
控件的原理是将html以及其样式,也就是获取前端页面,将其填充到打印控件中,直接打印需要授权
let scenelist = {
dv: $("#scenelist"),
ini: function () {
let that = this;
this.dv.on('click', 'a,button,.btns', function () {
const v = $(this).data('command');
if (v == 'printscene') {//打印单个
let id = $(this).data('id');
that.printscene(id);
}else if(v=='printscenes'){//批量打印
let checked = $('.table input[type="checkbox"]:checked');
let ids = checked.serializeArray();