1. $.trim (); The string goes to the space//2. $.each//cyclic/*var a = [' A ', ' B ', ' C '];$.each (A, function (Index,value) {console.log (index + ' + value);}); var o = {' name ': ' zh ', ' age ': ' $ ', ' love ': ' ss '};$.each (O, function (index,value) {console.log (index + ' + value);}); *///3. $.grep//Array filter var nums = ' 1,2,3,4,5,jquery,css,5 '. Split (', ');/*nums = $.grep (nums,function (num,index) {return IsNaN (num );}); *///4. $.map//Array data Change/*nums = $.map (num) {//filter out numbers and add 1if (!isnan (num)) {return parseint (num) +1;}}); *///5. $.inarray ()//Returns the number of indexes in the array, without returning -1//console.log ($.inarray (' 2 ', nums)); 6. $.merge ()//merge/*var att1 = [1,2,3,4];var att2 = [4,5,6,7];console.log ($.merge (ATT1,ATT2)); [1, 2, 3, 4, 4, 5, 6, 7]*///7.$.isarray (); Determines whether the array/*var a = [];console.log ($.isarray (a)); *///8.$.isfunction (); Determines whether the method//9.$.isemptyobject ()//Determines whether an empty object [] {} function () {} 0 false null string is the same as empty () in PHP/*var a = '; Console.log ($.isemptyobject (a)); *///10.$.isplainobject (); Whether it is purely an object of purely object {},new objects ();//11.$.contains (); Determine if the DOM node contains another DOM node//12.$.type ()////////13.$.isnumeric ()///Determine if the data is numeric//14.$.iswindow ()// If the break is a Window object//15.$.param ()//object to the URL key value pair/*var o = {age:12, name: ' Zh '};console.log ($.param (o)); *///16.$.proxy ( )//Adjust the point of this
jquery Tool Methods