-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from SecondDragon/master
9.4-面对对象-原型与原型链 修改
- Loading branch information
Showing
4 changed files
with
128 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,106 @@ | ||
<mxfile host="Electron" modified="2023-04-22T09:51:31.369Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.8.16 Chrome/106.0.5249.199 Electron/21.4.0 Safari/537.36" etag="_RaxN0JaclLTAhzq_Ssp" version="20.8.16" type="device"><diagram id="Ed7ZIexu5s1mp6d3kqyb" name="Page-1">5Vlbb9sgGP01PLYyBt8e49RtN2lat05r9xQ5NnXQHBMR0iT79YMYx9c0aeqsl71EcMBgzjl8fDgADaerKx7OJl9YTFJgGvEKoAtgmp6F5a8C1jlgeSgHEk7jHIIlcEv/EA0aGl3QmMxrHQVjqaCzOhixLCORqGEh52xZ7/bA0vqsszAhLeA2CtM2ekdjMclR13RK/JrQZFLMDG0vb5mGRWe9kvkkjNmyAqEAoCFnTOSl6WpIUsVdwUv+3OWO1u2LcZKJQx6gP9Lk++zuEV9/dR3j3mFkjM/0Mh7DdKEXfD7jTDCxnhH92mJdcCHISs7kT8Q0lQCUxbng7DcZspRxiWQskz39B5qmDShMaZLJaiTflUjcfyRcUMnyQDdMaRyrafzlhApyOwsjNedSWkpinC2ymKhlGLLWXremQo1JVhVI83BF2JQIvpZddKttaE20KaGj68tSYltDk4q6hZShNlWyHbnkXRY09c+QwW3LIA0t2V1EQvL4YYWw3poQ0GsrMRpttsRo9HF1QHZDB+uVddguodQBBBYYBMALQICBHwDX3yCXwPdA4AIfggFUPLRUKtmCO/isCFjVCpjowY1IFLWElS1j18JWT/SbXp1+E7fph2YH//hk/Jsd/NuKfBeDwAOuAQaG4t91gH+xabKAb9wQPmdZrwrEFnFj3KWAa46RbfcUiMw3pwDq3AGu3AGXquDt2gF2qmLSWJ4adqJKuSZPHOsvUYdAqY/TpY5nOyg8kTruq4tjtcVp0kqyeKASUBXl03A+p1GdSbKi4l6F8HPLM3X9lw7pqnyxqlbWutLgfwzj+MHo4h8aDvKIflx6gMqVq5MmHzKTLOST20VVzQ3PDbk0DZQvsKmtq7XmgDtFnrMFj8gBkUaEPCHigA1B4lrG3jZNxRVWhykKjJM0FPSxnud3OUXPcMOoXFvpyUbMRl7DbPnK9VPVvLwxkA27zV2MkxPTGmfj2+2qX2Dl9hXgJVY+2MilBasG1CM8Yb8eA9B+bxY3znfmTdxM55wjvWk1vAmbCd+pzdmRjv8XFyOMG/lIx5GHT5SQR4GBv33+k/KfI5d9StZwhPlZRz7+3ChRJ2nX/neeGQAOyNCL8ASrwUlPtDM+/YuoYb6tqNHY7Mg4Mmo41p6jsb+o0enVjrtLT16Fda/uz5WKg7HmPPNp5/V4Aeox+4Jv2qvb+nO9itEe05/Yq+1bXkaWH/hca9C9PbD2fGhCpzrXcO+xYpsLY+hUtv32anXovj/kYCuvcdhwq7HpzDj2Jtd1XXxBfEHv8yxEDZ/CY293zS+rrW8SR8cXWS3/PMq7l//AoeAv</diagram></mxfile> | ||
<mxfile host="65bd71144e"> | ||
<diagram id="Ed7ZIexu5s1mp6d3kqyb" name="Page-1"> | ||
<mxGraphModel dx="546" dy="481" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0"/> | ||
<mxCell id="1" parent="0"/> | ||
<mxCell id="24" value="<font style="font-size: 14px;">实例对象P</font>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="40" y="490" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="25" value="age:18" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="107.5" y="520" width="55" height="20" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="26" value="__proto__" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="107.5" y="540" width="55" height="20" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=1;" parent="1" source="29" target="24" edge="1"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<Array as="points"> | ||
<mxPoint x="290" y="530"/> | ||
<mxPoint x="290" y="530"/> | ||
</Array> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="28" value="<font style="font-size: 15px;">new</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="27" vertex="1" connectable="0"> | ||
<mxGeometry x="0.144" y="14" relative="1" as="geometry"> | ||
<mxPoint y="-14" as="offset"/> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="29" value="<font style="font-size: 17px;">构造函数Person</font>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="340" y="490" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="30" value="<font style="font-size: 14px;">构造函数原型对象</font>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="340" y="310" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="31" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=1;entryDx=0;entryDy=0;" parent="1" source="26" target="30" edge="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="280" y="440" as="sourcePoint"/> | ||
<mxPoint x="330" y="390" as="targetPoint"/> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="32" value="指向" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="31" vertex="1" connectable="0"> | ||
<mxGeometry x="0.0899" y="-2" relative="1" as="geometry"> | ||
<mxPoint as="offset"/> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="33" value="constructor" style="text;html=1;strokeColor=#d79b00;fillColor=#ffe6cc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="405" y="360" width="60" height="20" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="34" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="33" target="29" edge="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="400" y="340" as="sourcePoint"/> | ||
<mxPoint x="450" y="290" as="targetPoint"/> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="35" value="__proto__" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="405" y="340" width="60" height="20" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="36" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=1;entryDx=0;entryDy=0;" parent="1" source="35" target="39" edge="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="560" y="220" as="sourcePoint"/> | ||
<mxPoint x="630" y="190" as="targetPoint"/> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="38" target="30" edge="1"> | ||
<mxGeometry relative="1" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="38" value="<font style="font-size: 18px;">构造函数Object</font>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="580" y="310" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="39" value="" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=middle;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="580" y="180" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="41" target="38" edge="1"> | ||
<mxGeometry relative="1" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="41" value="constructor" style="text;html=1;strokeColor=#d79b00;fillColor=#ffe6cc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="645" y="220" width="60" height="30" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="43" target="44" edge="1"> | ||
<mxGeometry relative="1" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="43" value="__proto__" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="645" y="200" width="60" height="20" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="44" value="<font style="font-size: 19px;">null</font>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=middle;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1"> | ||
<mxGeometry x="580" y="30" width="190" height="80" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="47" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.389;entryY=1;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="45" target="30" edge="1"> | ||
<mxGeometry relative="1" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="45" value="prototype" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="384" y="530" width="60" height="30" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="46" value="prototype" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"> | ||
<mxGeometry x="620" y="350" width="60" height="30" as="geometry"/> | ||
</mxCell> | ||
<mxCell id="48" value="" style="endArrow=classic;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.336;entryY=1.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="46" target="39"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="655" y="540" as="sourcePoint"/> | ||
<mxPoint x="705" y="490" as="targetPoint"/> | ||
</mxGeometry> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
Oops, something went wrong.