From 52ea57e71a486f20bc1a829d8ad005ff72c2cba0 Mon Sep 17 00:00:00 2001 From: reactx <50101963+platinumcatgx@users.noreply.github.com> Date: Thu, 6 Mar 2025 18:12:31 +0800 Subject: [PATCH] Update index.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对象中存在的属性描述符有两种主要类型:数据描述符和访问器描述符。数据描述符是一个具有可写或不可写值的属性。访问器描述符是由 getter/setter 函数对描述的属性。描述符只能是这两种类型之一,不能同时为两者。 --- docs/es6/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/es6/index.md b/docs/es6/index.md index 81991853..699f7b68 100644 --- a/docs/es6/index.md +++ b/docs/es6/index.md @@ -285,7 +285,6 @@ Object.defineProperty(obj, 'a', { console.log(`开始读取属性`) return 1; }, - writable : true }) obj.a = 2 // 开始设置新值: 2 @@ -464,4 +463,4 @@ methodsToPatch.forEach(function (method) { - [https://zh.wikipedia.org/wiki/](https://zh.wikipedia.org/wiki/) - [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy) - [https://es6.ruanyifeng.com/#docs/proxy#Proxy-revocable](https://es6.ruanyifeng.com/#docs/proxy#Proxy-revocable) -- [https://youngzhang08.github.io/](https://youngzhang08.github.io/) \ No newline at end of file +- [https://youngzhang08.github.io/](https://youngzhang08.github.io/)