文件名称:utm-extractor:解析queryString并提取每个utm参数
文件大小:46KB
文件格式:ZIP
更新时间:2024-05-22 00:12:31
JavaScript
#安装utm-extractor yarn add utm-extractor or npm install utm-extractor --save #用法 import {Utm} from 'utm-extractor' const utm = new Utm('?utm_source=Google&utm_medium=cpc&utm_campaign=spring_sale&utm_term=running+shoes&utm_content=logolink') const values = utm.get() console.log(values) { utm_source : "Google", utm_medium: "cpc", utm_campaign: "spring_sale", utm_term: 'running+s
【文件预览】:
utm-extractor-master
----.gitignore(32B)
----.babelrc(28B)
----package.json(858B)
----package-lock.json(70KB)
----src()
--------.babelrc(27B)
--------index.js(2KB)
----yarn-error.log(55KB)
----dist()
--------index.js(3KB)
----spec()
--------support()
--------utm.spec.js(2KB)
----README.md(471B)
----.npmignore(7B)
----yarn.lock(50KB)