Other static methods of jQuery

<! DOCTYPE HTML> 
<HTML lang = "EN">
<head>
<Meta charset = "UTF-. 8">
<title>. 11-in other static method of the jQuery </ title>
<Script the src = "../ JS /jquery-3.4.1.js "> </ Script>
<Script>

/ * var STR =" Inj ";
var .trim RES = $ (STR);
the console.log (" ==== "+ STR +" = ==== ");
the console.log (" ==== "RES + +" ================ "); * /
// TRIM removal spaces across the string
@ parameters: the empty string need to be removed
/ / return value: string after removal of the space

// array
var ARR = [1,3,5,7,9];
// dummy array
var arrlike = {0: 1,1: 3,2: 5,3: 7,4:. 9, length:. 5};
// objects
var obj = { "name": "Inj",age:"33"};
var fn=function(){};
var w=window;
$ .isWindow RES = var (W);
/ * the console.log (RES); * /
var = $ RES1 the isArray (arrlike);.
/ * the console.log (RES1); * /
. = $ var RES2 isFunction (the jQuery );
the console.log (RES2);
/ **
* $ .isArray ();
* action: determining whether the object is passed a function
* return value: to true / to false
* Note points:
* frame is essentially a function of the jQuery
*
* /
/ * (function (window, undefined) {

}) (window);
* /
}

</ Script>
</ head>
<body>

</ body>
</ HTML>

Guess you like

Origin www.cnblogs.com/god1/p/12392310.html