jQuery.isWindow()方法

jQuery 教程 · 2019-03-28 22:36:39

实例

判断传入的参数是否为 window对象

window 是一个窗口吗? <b></b> <script> $(function () { $("b").append( "" + $.isWindow(window) ); }) </script>

定义和用法

$.isWindow() 函数用于判断指定参数是否是一个window窗口。

语法

$.isWindow( object )

参数 描述
object 任意类型 需要进行判断的任意值。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

The Linux Programming Interface

The Linux Programming Interface

Michael Kerrisk / No Starch Press / 2010-11-6 / GBP 79.99

The Linux Programming Interface describes the Linux API (application programming interface)-the system calls, library functions, and other low-level interfaces that are used, directly or indirectly, b......一起来看看 《The Linux Programming Interface》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具