Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个网页,其中一个图标将是打印机图标,它应该打印到连接到运行浏览器的设备的打印机。我还没有看到任何执行此操作的 groovy/grails 代码示例。任何人都可以帮忙吗?提前致谢。
You will have to use javascript to perform this task.
<A HREF="javascript:window.print()"> <IMG SRC="printer.gif"> </A>