Skip to content

Commit

Permalink
[zh-cn]: update the translation of Window length property
Browse files Browse the repository at this point in the history
  • Loading branch information
T34-active committed Aug 20, 2024
1 parent 21ea6fd commit 589a138
Showing 1 changed file with 8 additions and 12 deletions.
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

0 comments on commit 589a138

Please sign in to comment.