
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
pf-xiaochengxu-pvuv
Advanced tools
小程序专用埋点功能
npm i pf-xiaochengxu-pvuv
or
yarn add pf-xiaochengxu-pvuv
// main.js
// 1.0.1 版本以上写法
import { pvuv } from 'pf-xiaochengxu-pvuv'
// 1.0.1 版本以下写法
import pvuv from 'pf-xiaochengxu-pvuv'
const pvuv = new pvuv({
mapKey: '******', // 地图key
systemId: '***', // 系统 id, 不同的项目有不同的 id
url: '***'
})
uni.pvuv = pvuv;
// manifest.json
"mp-weixin" : {
// ......
"permission" : {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
参数名 | 说明 | 类型 | 值 | 是否必填 |
---|---|---|---|---|
mapKey | 高德地图key,如果不填则不进行地图信息获取 | string | *** | false |
systemId | 系统ID | string | '' | true |
url | 埋点请求地址 | string | *** | true |
参数名 | 说明 | 类型 | 默认值 | 是否必填 |
---|---|---|---|---|
pointId | 埋点id | string | - | true |
userId | 用户id | string | - | false |
otherParams | 其他供埋点分析的参数 | Object | - | false |
参数名 | 说明 | 类型 | 默认值 | 是否必填 |
---|---|---|---|---|
value | 值 | string | - | true |
需要将以下地址添加到小程序的白名单中
npm login
npm config set registry https://registry.npmjs.org/
将代理设置为 npmjsFAQs
The npm package pf-xiaochengxu-pvuv receives a total of 0 weekly downloads. As such, pf-xiaochengxu-pvuv popularity was classified as not popular.
We found that pf-xiaochengxu-pvuv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.