mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
update object-methods
This commit is contained in:
parent
c04151cde4
commit
e612f0a8b0
@ -544,7 +544,7 @@ const o = Object.setPrototypeOf({}, null);
|
|||||||
该方法等同于下面的函数。
|
该方法等同于下面的函数。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
function (obj, proto) {
|
function setPrototypeOf(obj, proto) {
|
||||||
obj.__proto__ = proto;
|
obj.__proto__ = proto;
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user