JQuery Animation AJAX Event (instance explanation)

Direct code

    Document    // ajax $ .ajax ({url: 'json / test.txt? _ =' + Math.random (), type: "get", DataType: 'json', / / "text", "html", "jsonp" success: function (data) {}} // event var $ box = $ ("# box") $ box.on ('click ", function () {Console .log (1) // this: Current Element (JS Native Object) $ (this)}) $ Box.on ('Click', Function () {Console.log (2)}) $ BOX.ON ('Mouseout ', function () {console.log (3)} // Tools // Each: jQuery has two EACH (there are two MAPs, and the principle of EACH, just support return values) // loop selector The acquired jQuery collection Each $ ('div "). Each (INDEX, VALUE) {} // Roop array, class array, each item in each item in the object ([12,23 , 34], Function (INDEX, VALUE) {} //$.makeArray ===> It is equivalent to listtoArray // animation // ('('#box' ).animate( left:xxx ,top: xxx ,. ..}, duration, "LineAr / swing ", function () {} // stop: Animation that is running before, open the next new animation (end the previous animation, the next animation is the current position starts moving) // delay: Delay // Finish: End the previous animation and let the elements arrive at the target position, start the next animation / * fadein (fade out) Fadeout Fadetoggle Show Hide Toggle Slideup Slidedown SlidEtoggle * /        The above JQuery Animation Ajax event (instance explanation) is the full content of Xiaobian sharing to everyone, I hope to give you a reference, I hope everyone will Support TUMI cloud.  
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment