2. 正、副本大小不一样,输出打印机也不一样,想一键打印,如何做?
复制内容到剪贴板
代码:
myF={
pagePrefix:'f',
settings:{ printer:'HP1002',
paperName:'a4'
}
}
myZ={
pagePrefix:'z',
settings:{ printer:'OKI001',
paperName:'a3'
},
done:function()
{
getJatoolsPrinter().print(myF);
}
}
getJatoolsPrinter().print(myZ);
<body>
<div id=zpage1>正本</div>
<div id=fpage1>副本</div>