Home > Web Front-end > JS Tutorial > body text

How to connect printer in javaScript

Release: 2018-06-14 15:41:25
2858 people have browsed it

Below I will share with you an example of using javaScript to link a printer and print a receipt. It has a good reference value and I hope it will be helpful to everyone.

is as follows:

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/webpage/include/taglib.jsp"%>

收票类型:电费 缴费日期: ${emfee.dt}
户名 ${emfee.userName} 表号 ${emfee.emNo} 房号 ${emfee.num}
起止时间 ${emfee.emDt}至${emfee.startDt} 缴费金额 ${emfee.tranMoney} 倍率 ${emfee.emRate}
用电量 时段 起止表码 倍率前用量 本次用量 单价 本次电费
${emfee.mosaicJian} ${emfee.jianQuantity} ${emfee.blJian} ${emfee.jian} ${emfee.jianFee}
${emfee.mosaicFeng} ${emfee.fengQuantity} ${emfee.blFeng} ${emfee.feng} ${emfee.fengFee}
${emfee.mosaicPing} ${emfee.pingQuantity} ${emfee.blPing} ${emfee.ping} ${emfee.pingFee}
${emfee.mosaicGu} ${emfee.guQuantity} ${emfee.blGu} ${emfee.gu} ${emfee.guFee}
${emfee.mosaicZong} ${emfee.quantity} ${emfee.blquantity} —— ${emfee.electFee}
电费 上次剩余(元) 本期已用(元) 本次缴费(元) 本次剩余(元)
${emfee.lastRemainQ} ${emfee.electFee} ${emfee.tranMoney} ${emfee.remainQ}
收款人: 付款人:

Copy after login

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

What are the methods for debugging js scripts?

How to implement the search box using Angular

Detailed introduction to interpolation in vue

vueHow to output original html?

The above is the detailed content of How to connect printer in javaScript. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
Latest Downloads
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!