[示例代码]
<html>
<head>
<script src="jquery-1.2.js"></script>
<script>
$(document).ready(
function () {
$.ajax({
url: "ajax.error.php",
timeout: 1000,
error: function (xmlHttpRequest, error) {
console.info(xmlHttpRequest, error);
}
});
}
);
</script>
</head>
</html>
时间: 2024-12-02 14:22:09