jQuery 判断给定的网址是否有效
$(document).ready(function() {
$.ajax({
type: "Get",
url: "http://www.baidu.com/",
complete: function(XHR, TS) {
alert(TS);
}
});
});
$.ajax({
type: "Get",
url: "http://www.baidu.com/",
complete: function(XHR, TS) {
alert(TS);
}
});
});