1.使用window.print()方法優點:支持多浏覽器缺點:取消打印,隱藏打印不必要的信息後再顯示比較麻煩如下實現,可以打印當前頁面
<%@ page language ="java" import="java.util.*" pageEncoding="utf-8" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://" +request.getServerName()+":"+request.getServerPort()+path+ "/"; %>My JSP 'print.jsp' starting page
hahahahahahahaha td> td> td> td> td> td> td> td>