-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path作用域.drawio
37 lines (37 loc) · 4.66 KB
/
作用域.drawio
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
<mxfile host="app.diagrams.net" modified="2022-10-27T11:55:15.819Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36" etag="AusnMMeNGiiQRf5J7Syo" version="20.5.1" type="github">
<diagram id="bgvt5PuYggvypvkScg1X" name="第 1 页">
<mxGraphModel dx="1426" dy="737" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="3300" pageHeight="4681" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="muk2QRLbzU_1VY-n0LTS-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="690" y="210" width="310" height="250" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-2" value="<font color="#6600cc">var</font> <font color="#3333ff">name1</font> <font color="#ff0000">= 'global scope'</font><br><br><br><br><br><br><br><br><br><br><br><br><br>fn()" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;" vertex="1" parent="1">
<mxGeometry x="720" y="230" width="170" height="210" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="720" y="270" width="260" height="140" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-3" value="<div><font color="#6600cc">function</font> <font color="#3333ff">fn</font>() {</div><div>&nbsp; <font color="#6600cc">var </font><font color="#3333ff">name2</font> <font color="#ff0000">= 'function scope'</font></div><div>&nbsp;&nbsp;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>}</div>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;" vertex="1" parent="1">
<mxGeometry x="720" y="270" width="180" height="140" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-7" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="730" y="310" width="230" height="80" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-4" value="<div style=""><font color="#6600cc">if </font>(true) {</div><div style="">&nbsp; &nbsp; l<font color="#6600cc">et</font> <font color="#3333ff">name</font>3 <font color="#ff0000">= 'block scope'</font></div><div style="">&nbsp; &nbsp; console.log(name1)</div><div style="">&nbsp; }</div>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="730" y="315" width="170" height="70" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-8" value="<font color="#000000">全局作用域</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#FF0000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="920" y="210" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-9" value="<font color="#000000">函数作用域</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#FF0000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="900" y="270" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="muk2QRLbzU_1VY-n0LTS-10" value="<font color="#000000">块级作用域</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#FF0000;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="880" y="310" width="80" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>