Skip to content

Commit f9b841a

Browse files
committed
add it
1 parent 0c0230d commit f9b841a

File tree

6 files changed

+117
-1
lines changed

6 files changed

+117
-1
lines changed

algorithm/gfe75/bfc/index.html

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Document</title>
7+
<style>
8+
.container {
9+
width: 300px;
10+
height: 400px;
11+
background: #eee;
12+
border: 1px dotted #777;
13+
overflow: hidden;
14+
}
15+
.parent {
16+
width: 1000px;
17+
height: 300px;
18+
margin: 20px auto;
19+
background: #bbb;
20+
transform: translateX(-50px);
21+
}
22+
.child {
23+
width: 250px;
24+
height: 200px;
25+
margin: 20px auto;
26+
background: #777;
27+
}
28+
</style>
29+
</head>
30+
<body>
31+
<div
32+
style="
33+
width: 50px;
34+
height: 50px;
35+
border: 1px solid red;
36+
margin-bottom: 20px;
37+
"
38+
>
39+
<div style="width: 30px; height: 30px; border: 1px solid red"></div>
40+
</div>
41+
<span
42+
style="
43+
border: 1px solid yellow;
44+
vertical-align: middle;
45+
margin-right: 100px;
46+
float: left;
47+
"
48+
>test1111 111111111
49+
</span>
50+
<div>
51+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo consectetur
52+
tempora quasi, minus possimus ducimus saepe, obcaecati quia non,
53+
aspernatur id rerum. Non cum soluta ipsam perferendis est nemo ab aliquid
54+
quod nesciunt doloremque in, architecto harum tenetur quibusdam officia
55+
iusto illo, ex cumque. Repudiandae perferendis officiis provident velit
56+
atque?
57+
</div>
58+
<div
59+
style="display: block; width: 30px; height: 30px; border: 1px solid blue"
60+
>
61+
hello div
62+
</div>
63+
64+
<div style="width: 100px; height: 100px; border: 1px solid black">
65+
<div
66+
style="width: 50px; height: 50px; margin-top: 10px; background: #bbb"
67+
>
68+
<div
69+
style="width: 30px; height: 30px; margin-top: 10px; background: #777"
70+
></div>
71+
</div>
72+
</div>
73+
<div
74+
style="width: 50px; height: 50px; border: 1px solid red; margin-top: 10px"
75+
></div>
76+
77+
<div class="container">
78+
<div class="parent">
79+
<div class="child"></div>
80+
</div>
81+
</div>
82+
83+
<span>xxxx span1</span>
84+
<span>span3</span>
85+
86+
<p lang="en-GB">This paragraph is defined as British English.</p>
87+
</body>
88+
</html>

algorithm/gfe75/closure.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const test = 'test';
2+
3+
const array = [1, 2, 3, 4, 5]
4+
for (let index = 0, getI = () => {
5+
console.log(index)
6+
return index;
7+
}; index < array.length; index++) {
8+
const element = array[index];
9+
console.log(element, index)
10+
getI()
11+
12+
}

algorithm/gfe75/module/a.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { b } from "./b.mjs";
2+
3+
console.log(b);
4+
5+
export const a = "a";

algorithm/gfe75/module/b.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { a } from "./a.mjs";
2+
3+
setTimeout(() => { console.log(a); }, 0);
4+
5+
console.log('b-->a');
6+
7+
export const b = "b";

algorithm/gfe75/module/index.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { a } from './a.mjs'
2+
3+
console.log(a)

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"**/*.ts",
1212
"froentend/generator/promise-limit2.js",
1313
"proxy/http.mjs",
14-
"algorithm/gfe75/18-node.js"
14+
"algorithm/gfe75/18-node.js",
15+
"algorithm/gfe75/closure.js"
1516
],
1617
"exclude": ["node_modules", "**/*.spec.ts"]
1718
}

0 commit comments

Comments
 (0)