|
楼主 |
发表于 2011-8-4 17:37:38
|
显示全部楼层
广东省深圳市
用WebBrowser比较好实现 .版本 2.支持库 WebBrowser
.局部变量 i
WebBrowser1.Navigate (“http://www.163.com”, , , , )
.判断循环首 (i < 2)
.如果真 (WebBrowser1.ReadyState = 4)
i = i + 1
.如果真结束
处理事件 ()
.判断循环尾 ()
信息框 (“载入完成”, 0, )
找到了一个方法,呵呵
参数说明
在《Pragmatic Ajax A Web 2.0 Primer 》中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下:
0: (Uninitialized) the send( ) method has not yet been invoked.
1: (Loading) the send( ) method has been invoked, request in progress.
2: (Loaded) the send( ) method has completed, entire response received.
3: (Interactive) the response is being parsed.
4: (Completed) the response has been parsed, is ready for harvesting.
0 - (未初始化)还没有调用send()方法
1 - (载入)已调用send()方法,正在发送请求
2 - (载入完成)send()方法执行完成,已经接收到全部响应内容
3 - (交互)正在解析响应内容
4 - (完成)响应内容解析完成,可以在客户端调用了 |
|