1.0.3 • Published 1 year ago
wd-report v1.0.3
一、安装依赖
在命令行中执行
yarn
二、打包 sdk
yarn build
三、发布 npm
npm publish
四、使用方式
html 中
<script src="***/index.js"></script>
<script>
new WDTracker({
requestUrl: 'http://localhost:8000/wdxx/wk/traker/report',
historyTracker: true,
domTracker: true,
jsError: true
})
vue 环境中
import WDTracker from 'wd-tracker'
new WDTracker({
requestUrl: 'http://localhost:8000/wdxx/wk/traker/report',
historyTracker: true,
domTracker: true,
jsError: true
})