-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
53 lines (53 loc) · 1.55 KB
/
demo.html
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
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>JsMiniAnalysis Demo</title>
<script src="JsMiniAnalysis/JsMiniAnalysis.js"></script>
</head>
<body>
<div data-JsMiniAnalysis data-replace data-include="./class/header.html"></div>
<div data-JsMiniAnalysis data-include="./class/main.html"></div>
<div data-JsMiniAnalysis data-replace data-include="./class/footer.html"></div>
</body>
<script>
{
// 自行控制
// let dom = document.querySelectorAll("*[data-JsMiniAnalysis]");
// for (let i = 0; i < dom.length; i++) {
// if (dom.hasOwnProperty(i))
// delete new JsMiniAnalysis({
// dom: dom[i]
// , isReplace: true
// , depth: 3
// , cb: function () {
// console.count(i);
// }
// , err: console.log
// }).run();
// }
}
{
console.time("body");
// 自动初始化
JsMiniAnalysis.InitAll(3,function () {
console.timeEnd("body");
});
}
{
// // 自行控制
// let dom = document.body;
// console.time("body");
// delete new JsMiniAnalysis({
// dom: dom
// , isReplace: true
// , depth: 3
// , data: {time:123456}
// , cb: function () {
// console.timeEnd("body");
// }
// , err: console.log
// }).run();
}
</script>
</html>