【文件属性】:
文件名称:electron-baidu-tongji:(百度统计) baidu tongji for electron
文件大小:84KB
文件格式:ZIP
更新时间:2021-05-01 02:38:49
electron vue analytics vue-router baidu
electron-baidu-tongji
Electron middleware:
Preconditions
See more
Installation
# yarn
$ yarn add electron-baidu-tongji
# or npm
$ npm install electron-baidu-tongji -S
API
ebtMain(ipcMain, [isDevelopment])
主进程
ipcMain: 必要参数
isDevelopment: 可选参数, 如果有则在开发时会发送 ...
// main/index.js
import { ipcMain } from 'electron'
import { ebtMain } from 'electron-baidu-tongji'
const isDevelopment = process.env.NODE_E
【文件预览】:
electron-baidu-tongji-master
----.gitignore(75B)
----package.json(595B)
----package-lock.json(181KB)
----SECURITY.md(619B)
----.travis.yml(201B)
----LICENSE(1KB)
----doc()
--------location.md(261B)
----index.js(3KB)
----__tests__()
--------index.test.js(3KB)
----README.md(3KB)
----__t()
--------trackPageview.js(915B)
--------hm.get.js(828B)
--------hm.min.js(39KB)
--------hm.js(49KB)