-
-
Save conanak99/223894441fe9cdb668c3b0e363592692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Truyền callback vào hàm ajax | |
var callback = function(image){ | |
console.log(image); | |
}; | |
ajax.get("gaixinh.info", callback); | |
// Có thể viết gọn như sau | |
ajax.get("gaixinh.info", function(image) { | |
console.log(image); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment