jquery.cuishifeng.cn
typeof myGlobal ! = “undefined”
JSON.stringify(testArr) JSON.parse(JSON.stringify(collection)
function isLess(a, b) {
return a < b; }
myObj.hasOwnProperty(checkProp)
Math.floor(math.random () * (mymax-mymin + 1)) + myMin; return a random number between myMin(myMin) and myMax(myMax).
$(document).ready(function() {$("#target1").css("color"."red");
$("#target1").prop("disabled".true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color"."red");
$("#right-well").children().css("color"."orange");
$("#left-well").children().css("color"."green");
$(".target:nth-child(2)").addClass("animated bounce");
$(".target:even").addClass("animated shake");
$("body").addClass("animated hinge");
});
Copy the code
$('p:first'The $()'p:last'The $()'p:not(".a")'The $()'p:even'The $()'p:odd'The $()'p:eq(3)'The $()'p:gt(2)'The $()'p:lt(2)'The $()':header'The $()'p:contains("LiveScript")'The $()'p:has("strong")'The $()'div p:first-child'The $()'div p:only-child'The $()'div p:nth-child(2)'The $()'div p:nth-child(even)'The $()'select:selected')
Copy the code