javascript window.print(),传递副本作为参数 [英] javascript window.print(), passing number of copies as param

查看:1210
本文介绍了javascript window.print(),传递副本作为参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法可以将参数值传递给javascript window.print()函数。假设我想打印2份,但默认打印对话框显示1。

Is there any way that I can pass parameter value to javascript window.print() function. Suppose I would like to print 2 copies, but by default print dialog box shows 1.

是否有其他功能可以调用打印并从浏览器传递份数?

Is there alternative function to call print and pass number of copies from browser?

推荐答案

不,(un-)幸运的是,这是不可能的。

No, (un-)fortunately that's not possible.

I说这是好事;否则一些网站会指定一个较高的数字,而那些不期望这会不会打印大量网页的人而不是一个网页。

I'd say this is a good thing; otherwise some sites would specify a high number and people who don't expect this would accidentally print lots of pages instead of just a single one.

这篇关于javascript window.print(),传递副本作为参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆