【问题标题】:How to include .jar in Ionic 3 or print in Apex2如何在 Ionic 3 中包含 .jar 或在 Apex2 中打印
【发布时间】:2019-05-19 02:49:39
【问题描述】:

如何在 ionic 3 项目中包含 .jar? 此 .jar 用于在打印机 Datamax O'neil Apex 2 上打印。

谢谢

【问题讨论】:

    标签: javascript typescript ionic-framework ionic2 ionic3


    【解决方案1】:

    要使用 Jar 的功能(希望是为 Android 编写的 jar,因为并非所有 Java 代码都会在 Android 上运行,尤其是要驱动打印机的代码,并且大多数 Android 库都保存在 . aar not .jar's) 你将不得不写一个Cordova Plugin。当然,这仅适用于 Android,因为 iOS 使用 pod (CocoaPods) 如果它要运行的话。顺便说一句,Ionic 是 Cordova 的包装器,当 Ionic 中不包含您需要的功能时,您想要查看它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-06
      • 1970-01-01
      • 2017-12-31
      相关资源
      最近更新 更多