xj-report

支持上报异常类型 1. 上报程序异常 2. 上报网络异常

Usage no npm install needed!

<script type="module">
  import xjReport from 'https://cdn.skypack.dev/xj-report';
</script>

README

小程序错误上报模块

支持上报异常类型

  1. 上报程序异常
  2. 上报网络异常

使用方法

  1. 安装
npm install xj-report

2.使用

import collection from 'xj-report'
collection.init('https://baidu.com') // 配置上报服务器地址
collection.recordProgramError('有错误出现')

3.立即上报所有

collection.reportAll()