终止当前正执行的客户脚本,直到指定调用对象的异步 remote
语法
co.wait()
参数
co
执行 remote
说明
调用该方法将把一个异步 remote
示例
下面的脚本异步调用 EmpLists 页上的方法 GetNames。当发出调用后,它显示一条消息,然后等待结果。
<
empLookup = RSGetASPObject("../mypages/EmpLists.asp");
co = empLookup.GetNames(showResults);
txt1.value = "Getting employee names ..."
co.wait() // suspends client processing
</
文档: 取消方法
停止某个正异步执行的 remote
语法
co.cancel()
参数
co
执行某个 remote
说明
您可以在异步调用 remote
您不能取消同步 remote
示例
<
empLookup = RSGetASPObject("../mypages/EmpLists.asp");
coEmpList = empLookup.GetNames(showResults);
txt1.value = "Getting employee names, press Cancel to stop."
</
<
coEmpList.cancel()
</