sun-burying-point
v0.0.6
Published
``` npm install sun-burying-point; ``` ### 引入 ``` import BuryingPoint from "sun-burying-point"; ``` ### 初始化方法 ``` BuryingPoint.init({ uploadURL: "http://192.168.3.14:3000/user/users", //上传数据地址 type: "cl",
Downloads
3
Readme
使用方法
安装
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()