1.0.3 • Published 2 months ago

cordova-plugin-jbprint-jsg v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

使用

中文编码

 getCNCommand(str) {
      return new Promise((resolve, reject) => {
        JbPrintService.getCommand(str, (res) => {
          resolve(res);
        }, (res) => {
          reject(res);
        });
      })
    },

打印机状态

getStatus()

  • Z000 成功
  • Z001 请先连接打印机
  • -1 获取状态失败 打印机状态获取失败,请检查打印机是否缺纸或开盖
  • 1 状态走纸、打印
  • 0 状态正常
  • -2 状态缺纸
  • -3 状态开盖
  • -4 状态过热
1.0.1

2 months ago

1.0.3

2 months ago

1.0.0

5 months ago