codecamp

window属性:length

length属性

length 属性返回 window 中的帧数(<frame>或者<iframe>元素)。

length属性语法

framesCount = window.length;
  • framesCount 是帧的数量。

length属性示例

if (window.length) {
  // this is a document with subframes
}

规范

规范 状态 注释
HTML Living Standard 
该规范中'Window.length'的定义。
Living Standard
 
HTML5 
该规范中'Window.length'的定义。
Recommendation

window属性:isSecureContext
window属性:localStorage
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定