ÍêÃÀAjaxÀà,Ö§³Öʼþ
<scrīpt Language="Javascrīpt">
<!--
// author:±¼ÌÚµÄÐÄ
// qq:7180001
function Ajax(OnError,OnState,OnDownloadEnd)
{
this.ErrorStr = null;
this.OnError = OnError;
this.OnState = OnState;
this.OnDownloadEnd = OnDownloadEnd;
this.method = "GET";
this.URL = null;
this.sync = true;
this.PostData = null
this.RetData = null;
this.HttpObj = this.createXMLHttpRequest();
if(this.HttpObj == null)
{
return;
}
var ōbj = this;
this.HttpObj.onreadystatechange = function()
{
Ajax.handleStateChange(Obj);
}
}
Ajax.prototype.UTFTOGB = function(strBody)
{
var Rec=new ActiveXObject("ADODB.RecordSet");
Rec.Fields.Append("DDD",201,1);
Rec.Open();
Rec.AddNew();
Rec(0).AppendChunk
Ïà¹ØÎĵµ£º
¸ÐлÄú×¢²áʹÓà Google AJAX Search API ÃÜÔ¿£¡
ÄúµÄÃÜÔ¿ÊÇ£º
ABQIAAAA2XOmDwsdSefVWtliFM7oAhRgUnSrtx2R2fBqn5WGl7l070PqvBRbr7s7L72cRNSIH96KndKP3sbASw
¸ÃÃÜÔ¿¿ÉÓÃÓÚ¸ÃĿ¼ÖеÄËùÓÐÍøÖ·£º
http://www.rdladmin.test
ÒÔÏÂÊǰïÖúÄúÈëÃŵÄʵÀýÍøÒ³£º
<!DOCTYPE html PUBLIC "-//W3C//DTD X ......
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>xmlhttprequest ajax demo</title>
<script type ="text/javascript" language ="javascript" >
......
´Ö¿´ Selenium
ÔÚµäÐ͵ÄÔÚÏßÉ̵êÖУ¬ÐèÒªÓû§ÊäÈë»òÑ¡ÔñÖڶಽÖèºó²Å¿ÉÒÔÍê³ÉÕû¸ö¹ºÎïÁ÷³Ì¡£×÷ΪwebÓ¦ÓõĿª·¢Õߣ¬ÄãÈçºÎ±£Ö¤Äã³ÌÐòµÄÖÊÁ¿ºÍÕýÈ·ÐÔÄØ£¿Èç¹ûÄÜÓа취²âÊÔÄ㹦ÄܵÄÕýÈ·ÐÔ£¬ÄÇÎÊÌâ¾ÍÓÈжø½âÁË£¬µ«ÈçºÎ×öµ½ÄØ?
Selenium ÊÇÒ»¸öÓÉThoughtWorks×öµÄרÃÅΪwebÓ¦ÓÃËù×öµÄ·Ç³£ÓÐЧµÄ¹¦ÄܲâÊÔ¹¤¾ß¡£Selenium µÄ tes ......
//Óû§ÃûУÑéµÄ·½·¨
//Õâ¸ö·½·¨½«Ê¹ÓÃXMLHTTPRequest¶ÔÏóÀ´½øÐÐAJAXµÄÒì²½Êý¾Ý½»»¥
var xmlhttp;
function verify() {
//0¡£Ê¹ÓÃdomµÄ·½Ê½»ñÈ¡Îı¾¿òÖеÄÖµ
//document.getElementById("userName")ÊÇdomÖлñÈ¡ÔªËØ½ÚµãµÄÒ»ÖÖ·½·¨£¬Ò»¸öÔªËØ½Úµã¶ÔÓ¦HTMLÒ³ÃæÖеÄÒ»¸ö± ......