MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getCookie

Function getCookie

src/utils/utils.js:66–73  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

64 * @returns {*}
65 */
66export function getCookie (name) {
67 let arr;
68 const cookieReg = new RegExp(`(^| )${name}=([^;]*)(;|$)`);
69 if ((arr = document.cookie.match(cookieReg))) {
70 return unescape(arr[2]);
71 }
72 return null;
73}
74
75// 获取随机GUID
76export function getGuid () {

Callers 1

fetchCurrentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected