【jQuery api】isArray
2024-10-19 14:45:38
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
Is [] an Array? <b></b>
<script>$("b").append( "" + $.isArray([]) );</script> </body>
</html>
Is [] an Array? true
$.isArray(123); // false
$.isArray(true); // false
$.isArray([1, 2]);// true
$.isArray(new Array(3, 4)); // true
$.isArray()
返回一,用来指明对象是否是一个JavaScript数组(而不是类似数组的对象,如一个jQuery对象)。
最新文章
- Javascript学习之无缝滚动
- WPF打包32位和64位程序 运行在ghost WIN7上问题
- MVC中使用EF增删改查,简单的例子
- hive内部表、外部表、分区表、视图
- 控制器层(Controllers)
- 在 2017 年将会更加流行的 6 个 Web 开发趋势
- 自定义php安装(2)—mysql安装和php整合
- oracle 11g 之 result cache
- sae-xhprof调试性能
- Echarts使用随笔(1)-Echarts中markPoint的使用(静态、动态)-effect
- coreseek(sphinx)错误:WARNING: attribute &#39;id&#39; not found - IGNORING
- DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度
- PHP中$_FILES的使用方法及注意事项说明
- SQL Server创建索引
- ASP.NET Core 一步步搭建个人网站(2)_一键部署和用户注册登录
- 【java】多态
- 23、svn与打飞机
- 常用的vi/vim基本命令(持续更新)
- Asp.Net Core App 部署故障示例 1
- import c++ project to eclipse cdt with exiting makefile
热门文章
- DevExpress TreeList使用心得
- render :template 和 render :parital
- ORA-02266: unique/primary keys in table referenced by enabled foreign keys
- MongoDB学习笔记~为IMongoRepository接口添加分页取集合的方法
- WPF Telerik TreeListView样式设计
- 升级Windows 10 正式版过程记录与经验
- Python学习记录day5
- MySQL命令行下执行.sql脚本详解
- NOIP2013花匠
- java读取excel文件