-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (40 loc) · 1.23 KB
/
index.html
File metadata and controls
43 lines (40 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./dist/index.js"></script>
<!-- <script>
const observer = new PerformanceObserver((list) => {
for(const entry of list.getEntries()){
console.groupCollapsed(entry.name);
console.log(entry.entryType);
console.log(entry.startTime);
console.log(entry.duration);
console.groupEnd(entry.name);
}
})
observer.observe({entryTypes:['longtask','frame','navigation','resource','mark','measure','paint']});
</script> -->
<button data-tracker-key="btn">btn to add</button>
<button id="tracker-history">history</button>
<script>
new tracker({
requestUrl: "https://koa-template-382-4-1312741325.sh.run.tcloudbase.com/api/test",
historyTracker: true,
domTracker: true,
jsError: true,
lazyReport: true,
timeTracker: true,
})
const btn = document.querySelector("#tracker-history")
btn.addEventListener("click", () => {
history.replaceState('abc', '')
})
</script>
</body>
</html>