代码
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="C.aspx.cs" Inherits="C" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>

</head>
<body>
<form id="form1" runat="server">
<div>


<script>

//--不加这个报错找不道对象
AjaxPro.Request.prototype.timeout=function()
{
try {
this.duration = new Date().getTime() - this.__start;
var r
= this.onTimeout(this.duration, this);
if(typeof r == "undefined" || r != false) {
this.abort();
}
else {
this.timeoutTimer = setTimeout(this.timeout.bind(this),AjaxPro.timeoutPeriod);
}
}
catch(error)
{
// Statements that execute in the event of an exception
} finally
{
// Statements that execute afterward either way
}
}


</script>

 

经过测试非常有用哈哈

 

posted on 2010-07-22 10:14  苹果妖怪  阅读(513)  评论(0)    收藏  举报