// 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