SD 统计封装
安装使用
npm i sd-track-core@0.1.2 --save
Demo
创建
const tracker = showLog: true { return biz: 'SDH' platform: '****' } commonControlArg: {} // handleTrack: (trackData, controlArg) => { // console.warn('统计怎么发可以重写,handleTrack: (trackData, controlArg) => {}') // }
调用
tracker
扩展
更新日志
v0.1.2
npm ignore .babelrc
v0.1.1
rename tracker.wraper 2 tracker.wrapper
v0.1.0
修改api
v0.0.9
fix bug
Possible Unhandled Promise Rejection: TypeError: Cannot read property 'then' of undefined
v0.0.6
增加commonControlArg