• 请不要在回答技术问题时复制粘贴 AI 生成的内容
JesseHeisenberg
V2EX  ›  程序员

js 打印 900 页内容,预览白屏怎么破?

  •  
  •   JesseHeisenberg · Jan 8, 2019 · 2413 views
    This topic created in 2886 days ago, the information mentioned may be changed or developed.

    环境:chrome
    区域打印,有没有什么办法可以不预览直接,在 chrome 下。

    Kagari
    Kagari
    Jan 8, 2019
    1
    可以试下“--disable-print-preview ”
    cnit
    cnit
    Jan 8, 2019
    2
    1 楼的方法是可以,我以前试过。但是后来我是做成了个服务进程,socket 接数据直接打
    JesseHeisenberg
    JesseHeisenberg
    OP
    Jan 9, 2019
    3
    @Kagari #1
    @cnit #2 用 js 还是无法控制的吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4265 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:28 · PVG 15:28 · LAX 23:28 · JFK 02:28
    ♥ Do have faith in what you're doing.