u-spa
Version:
SPA应用监控工具,监听url变化、首屏加载指标、js-error、image-error 并上报
16 lines (15 loc) • 510 B
TypeScript
export declare const getCurrentDate: () => string;
export declare const getCookieByKey: (key: string) => string;
/**
*
* @param str
* localStorage 可能存储的是对象,层层嵌套,这种情况,str 就传 "a.b.c", 对象的示例: {a: {b: {c: 'hi'}}}
* @returns localStorage中寻找到的值
*/
export declare const getLocalStorageByKey: (str: string) => string;
/**
*
* @param cookieKey cookie 的 key 值
* @returns
*/
export declare const getUserName: (cookieKey: string) => string;