0.3.0 • Published 6 years ago
report-client v0.3.0
上报客户端
用法:
安装:
npm i report-client
使用
import * as Report from 'report-client'
// 初始化
Report.init({
appId: 'abcde'
host: 'baidu.com'
})
// 在需要上报的地方调用,第一个参数即为 action 名称
Report.report('login')
npm i report-client
import * as Report from 'report-client'
// 初始化
Report.init({
appId: 'abcde'
host: 'baidu.com'
})
// 在需要上报的地方调用,第一个参数即为 action 名称
Report.report('login')