@aocoding/v-track
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

v-track

一个简单易用的埋点工具(兼容 vue2 vue3)

安装

npm install @aocoding/v-track

使用

main.js 引入插件

// main.js
import track from '@aocoding/v-track'
app.use(track,(value)=>{
  // 伪代码
  sendAjax(value)
})

模板中使用指令

<div v-track="123"></div>
<div v-track="{a:1,b:2}"></div>

Package Sidebar

Install

npm i @aocoding/v-track

Weekly Downloads

0

Version

0.0.1

License

GPL-3.0

Unpacked Size

7.09 kB

Total Files

13

Last publish

Collaborators

  • aocoding