0.0.6 • Published 3 years ago

sun-burying-point v0.0.6

Weekly downloads
8
License
ISC
Repository
-
Last release
3 years ago

使用方法

安装

npm install sun-burying-point;

引入

import BuryingPoint from "sun-burying-point";

初始化方法

BuryingPoint.init({
  uploadURL: "http://192.168.3.14:3000/user/users", //上传数据地址
  type: "cl",                                       //项目类型
  whiteList: ["192.168.3.14", "192.168.2.333"],     //白名单地址,有则可以发送埋点数据
});

添加额外参数

SunBuryingPoint.addition({ test: "额外参数" })

更新用户名

BuryingPoint.userUpdate('userName') // 有用户名
BuryingPoint.userUpdate() // 没有用户名

发送pv

BuryingPoint.sendPV()
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago