<!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对象)。

 

最新文章

  1. Javascript学习之无缝滚动
  2. WPF打包32位和64位程序 运行在ghost WIN7上问题
  3. MVC中使用EF增删改查,简单的例子
  4. hive内部表、外部表、分区表、视图
  5. 控制器层(Controllers)
  6. 在 2017 年将会更加流行的 6 个 Web 开发趋势
  7. 自定义php安装(2)—mysql安装和php整合
  8. oracle 11g 之 result cache
  9. sae-xhprof调试性能
  10. Echarts使用随笔(1)-Echarts中markPoint的使用(静态、动态)-effect
  11. coreseek(sphinx)错误:WARNING: attribute &#39;id&#39; not found - IGNORING
  12. DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度
  13. PHP中$_FILES的使用方法及注意事项说明
  14. SQL Server创建索引
  15. ASP.NET Core 一步步搭建个人网站(2)_一键部署和用户注册登录
  16. 【java】多态
  17. 23、svn与打飞机
  18. 常用的vi/vim基本命令(持续更新)
  19. Asp.Net Core App 部署故障示例 1
  20. import c++ project to eclipse cdt with exiting makefile

热门文章

  1. DevExpress TreeList使用心得
  2. render :template 和 render :parital
  3. ORA-02266: unique/primary keys in table referenced by enabled foreign keys
  4. MongoDB学习笔记~为IMongoRepository接口添加分页取集合的方法
  5. WPF Telerik TreeListView样式设计
  6. 升级Windows 10 正式版过程记录与经验
  7. Python学习记录day5
  8. MySQL命令行下执行.sql脚本详解
  9. NOIP2013花匠
  10. java读取excel文件