0.0.6 • Published 3 years ago

id-card-read v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

npm包提交

npm插件包开发参考文档

打包

$ npm run build

发布

$ npm publish

id-card-read 使用

安装

$ npm i id-card-read

导入

import { CVR100UA } from 'id-card-read';

cvrSrv: CVR100UA;

constructor() {
  // 实例化
  this.cvrSrv = new CVR100UA();
}

使用

use(): void {
  设置button loading 防止频繁点击
    if (this.loading === true) {
      return;
    }
    this.loading = true;
    this.cvrSrv.readCardProcess().then((res: any) => {
      // res 身份证数据
      console.log(res);
      this.loading = false;
    }).catch(e => {
      this.loading = false;
    });
  }
0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago