资 源 简 介
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