我的 AjaxPro 项目出现以下错误:
Error: this.onTimeout is not a function
Source: http://localhost:3405/ajaxpro/core.ashx
Line: 407
我知道这与 AjaxPro 的发布有关,但是你们有没有一个不包含该错误的版本?或者我该如何纠正?我已经从 AjaxPro.info 下载了最新版本,但没有任何运气。
请使用异步调用,例如在 JavaScript 中:
function getServerTime()
{
test_Default8.GetServerTime(getServerTime_callback); // asynchronous call
}
// This method will be called after the method has been executed
// and the result has been sent to the client.
function getServerTime_callback(res)
{
alert(res.value);
}
这将解决您的问题。