简体   繁体   English

我想在按下打印按钮时得到打印对话框吗?

[英]I want to get print dialog box when press print button?

I want an to print the receipt of my purchase order. 我要打印我的采购订单收据。 I had already created the button ie print in my application but i have no idea how can i implement this print dialog box issue. 我已经在应用程序中创建了按钮即打印,但是我不知道如何实现此打印对话框问题。

here is my fiddle http://jsfiddle.net/#&togetherjs=Ba7arcBC0S 这是我的小提琴 http://jsfiddle.net/#&togetherjs=Ba7arcBC0S

Can any one please help? 有人可以帮忙吗?

The code on your jsfiddle is correct. jsfiddle上的代码是正确的。 You may just need to select jQuery from the select box on the top left (that's currently showing No-Library) 您可能只需要从左上角的选择框中选择jQuery(当前显示的是No-Library)

Here it's working in jsbin: http://jsbin.com/jadiw/1/quiet 它在jsbin中工作: http ://jsbin.com/jadiw/1/quiet

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM