本日给人人引见一个js无侵入埋点计划:
min版: https://github.com/aoping/tra…
原版:https://github.com/Qquanwei/t…
min版是我在原版的基础上举行优化和精简开辟的,打包后大小只要8k(原版190k)
min版供应两个api: before after
这里只引见min版运用:
- 装置
npm i trackpoint-tools -S 或
npm i trackpoint-tools-min@latest -S
- 运用
代码: https://codesandbox.io/s/oxxw…
喜好的能够star