老师好,在 dom/css.md 中的描述关于 window.getComputedStyle() 方法的描述”[该方法返回的 CSSStyleDeclaration 实例的`cssText`属性无效,返回`undefined`](https://github.com/wangdoc/javascript-tutorial/blame/83aea13cd3626db7ca14f65e42224b5cca3cfa02/docs/dom/css.md#L331)“似乎有误,实际在浏览器中测试返回的应该是空字符串而不是 undefined。 在W3C中看到一处 change:[CSSStyleDeclaration.cssText now returns the empty string for computed style.](https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-csstext:~:text=CSSStyleDeclaration.cssText%20now%20returns%20the%20empty%20string%20for%20computed%20style.)