var
remoteValue =
false
;
$.ajax({
url:
'http://google.com'
,
success:
function
() {
true
}
});
console.log(remoteValue);
//outputs "false"
By Chun Yin Vincent Lau