返回值:booleanjquery.iswindow(obj)
概述
测试对象是否是窗口(有可能是frame)。
参数
objobjectv1.4.3
用于测试是否为窗口的对象
示例
描述:
测试是否为窗口
jquery 代码:
<!doctype html>
<html>
<head>
<script class="lazy" data-original="http://code.jquery.com/jquery-1.5.2.js"></script>
</head>
<body>
is 'window' a window? <b></b>
<script>$("b").append( "" + $.iswindow(window) );</script>
</body>
</html>