0.0.4 • Published 3 years ago

@yeepay/browser-support-merchant v0.0.4

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

易宝支付(商户后台),浏览器兼容性检测 sdk,ie >= 9

How it work?

在入口 html 处引入 sdk cdn :

<script type="text/javascript" src="//cdn.jsdelivr.net/npm/@yeepay/browser-support-merchant@0.0.1/index.min.js"></script>

示例:

index.hmtl

<html>
  <head>
	/* ... */
  </head>
  <body>
	/*...*/
    <script type="text/javascript" src="//cdn.jsdelivr.net/npm/@yeepay/browser-support-merchant@0.0.1/index.min.js"></script>
  </body>
</html>

❗️必须在 body 标签内部或之后, 并且其他 script 标签之前注入。

For Developer

安装依赖

npm install

一、开发 unsupport 页面

  1. 将 src/unsupport.html 首部 head 注释解除,将 css 注入。
  2. 启动
npm run start 

二、编译

页面开发完成后,先编译:

  1. 将 src/unsupport.html 首部 head 注释。
  2. 编译
npm run compile 

三、测试

编译后方可测试:

npm run test

四、构建

编译后方可构建:

npm run build

五、发布 npm

npm publish --access public
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago

0.0.1-beta.3

4 years ago

0.0.1-beta.2

4 years ago

0.0.1-beta.1

4 years ago