jQuery.isArray()方法

jQuery 教程 · 2019-03-29 09:19:43

实例

判断指定参数是不是一个数组

[] 是一个数组吗?<b></b> <script> $(function () { $( "b" ).append( "" + $.isArray([]) ); }) </script>

定义和用法

$.isArray()函数用于判断指定参数是否是一个数组。

语法

$.isArray( object )

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

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

查看所有标签

Math Adventures with Python

Math Adventures with Python

Peter Farrell / No Starch Press / 2018-11-13 / GBP 24.99

Learn math by getting creative with code! Use the Python programming language to transform learning high school-level math topics like algebra, geometry, trigonometry, and calculus! In Math Adventu......一起来看看 《Math Adventures with Python》 这本书的介绍吧!

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

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码