Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: update the translation of Window length property #23169

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions files/zh-cn/web/api/window/length/index.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
---
title: window.length
title: Window:length 属性
slug: Web/API/Window/length
l10n:
sourceCommit: 62cedc63226017e9e7d0718b6fea3529ca8dbf37
---

{{ApiRef}}
{{APIRef}}

## 概述
返回窗口中框架的数量(包括 {{HTMLElement("frame")}} 和 {{HTMLElement("iframe")}} 元素)。

返回当前窗口中包含的框架数量 (框架包括`frame`和`iframe`两种元素).
## 值

## 语法

```plain
framesCount = window.length;
```

- `framesCount`就是该窗口中框架的数量。
数字。

## 示例

```js
if (window.length) {
// 该窗口包含至少一个子框架
// 这是一个包含子框架的文档。
}
```

Expand Down