首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > jQuery插件,创建了一个数组扩展阵列和可枚举函数原型

jQuery插件,创建了一个数组扩展阵列和可枚举函数原型

  • 资源大小:8.72 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: jquery array Prototype protify

资 源 简 介

This jQuery plugin creates and array with Prototypes array and enumerable functions, and allows chaining the way that Prototype does. Syntax: // this does not extend the array. var arr = [1,2,3,4,5,6]; $.protify(arr).findAll(function(a) { return a <=3 }); // --> [1,2,3] //this does extend the array, but only for this object. $.protify(arr, true); arr.findAll(function(a) { return a <=3 }); // --> [1,2,3] [1,2,3,4,5,6].findAll(function(a) { return a <=3 }); // --> error, findAll is not a function
VIP VIP
0.240754s