javascript - vue asynchronous data printing problem
欧阳克
欧阳克 2017-06-26 10:55:10
0
1
830

After rendering the data obtained asynchronously from a component, if you click the browser's print function, all asynchronous data will not be displayed on the printout.

 print() {
          //this.showTable = true
         // let self = this
          setTimeout(function() {
              window.print()
           //   self.autoBack(self)
              console.log(5000)
          }, 1000)
      },
欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(1)
代言

Put the things that need to be printed into an iframe separately, and then print this iframe. The style can be adjusted easily.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template