jQuery数组判等 equal array in jQuery
//equal array in jQueryjQuery.fn.compare = function(t) { if (this.length != t.length) { return false; } var a = this.sort(), b = t.sort(); for (var i = 0; t[i]; i++) { if (a[i] !== b[i]) { return false; } } return true;};