1.0.3 • Published 3 years 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
})