//html代码
...
//下载前处理的函数
renderOverpageClum () {
let demoHeight = $('#demo').height()
let pageWidth = $('#demo').width()
let pageHeight = pageWidth / 595.28 * 841.89 // 计算每页的高度
let pageNum = Math.ceil((demoHeight - 100)/(pageHeight - 100))
$('.jy-page').attr('style', 'height:'+pageHeight+'px;width:' + pageNum * pageWidth + 'px;column-count: '+pageNum+'');
var baseDom = $('.jy-page').eq(0)
console.log((demoHeight - 100)/(pageHeight - 100))
console.log(pageNum)
console.log('每页宽度:'+ pageWidth)
console.log('每页高度:'+ pageHeight)
if (pageNum > 1) {
for (var i = 1; i < pageNum; i++) {