Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

AjaxÖÐÇëÇó±»»º´æµÄÎÊÌâ

½ñÌì¸ãÁËÎÒÈýËĸöСʱµÄÎÊÌ⣬ÖÕÓÚÕÒµ½½â¾ö·½°¸ÁË¡£¹þ¹þ¡£
ÔÚAjax¿ª·¢ÖУ¬»áÓöµ½ä¯ÀÀÆ÷»º´æÄÚÈݵÄÎÊÌ⣬±ÈÈ磬ij¸öÔªËØ×¢²áÁËÊó±êʼþ£¨onmouseover£©£¬Ê¼þ´¥·¢ºó»áͨ¹ýxmlhttprequestµ½·þÎñÆ÷»ñÈ¡ÄÚÈÝ£¬ÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏ£¬ä¯ÀÀÆ÷»á»º´æµÚÒ»´ÎÇëÇóµÄÄÚÈÝ£¬·þÎñ¶Ë¸üкóä¯ÀÀÆ÷ÈÔÈ»ÏÔʾµÚÒ»´ÎµÄÄÚÈÝ¡£
ͨ³££¬ÕâÖÖÇëÇó¶¼ÊÇxmlhttprequest·¢ÆðµÄGETÇëÇ󡣸ù¾Ý HTTP ¹æ·¶£¬GET ÓÃÓÚÐÅÏ¢»ñÈ¡£¬¶øÇÒÓ¦¸ÃÊÇÃݵȵġ£Ò²¾ÍÊÇ˵£¬µ±Ê¹ÓÃÏàͬµÄURLÖظ´GETÇëÇó»á·µ»ØÔ¤ÆÚµÄÏàͬ½á¹ûʱ£¬GET·½·¨²ÅÊÇÊÊÓõġ£µ±¶ÔÒ»¸öÇëÇóÓи±×÷ÓõÄʱºò£¨ÀýÈ磬Ìá½»Êý¾Ý×¢²áÐÂÓû§Ê±£©£¬Ó¦¸ÃʹÓÃPOSTÇëÇó¶ø²»ÊÇGET¡£ËùÒÔä¯ÀÀÆ÷»á¶ÔGETÇëÇó×ö»º´æ´¦Àí¡£
½â¾ö°ì·¨£º
Ò». GETÇëÇóURLºó¸½¼Ó×Ö´®£¬È÷þÎñÆ÷ÈÏΪ²»ÊÇÏàͬµÄÇëÇó¡£
Àý “http://www.example.com/index.php?class=aitcle&page=5&_t=” + new Date().getTime()
¶þ. ÔÚajax·¢ËÍÇëÇóÇ°¼ÓÉÏ xmlHttpRequest.setRequestHeader(”If-Modified-Since”,”0″)
Èý. ÔÚajax·¢ËÍÇëÇóÇ°¼ÓÉÏ xmlHttpRequest.setRequestHeader(”Cache-Control”,”no-cache”);
ËÄ. ·þÎñ¶ËÏìÓ¦ÇëÇóʱ¼Ó header(”Cache-Control: no-cache, must-revalidate”); £¨PHP£©
Îå. ʹÓÃPOST´úÌæGET£¬ä¯ÀÀÆ÷²»»á¶ÔPOST×ö»º´æ
¸½Â¼£º
RFC1945ÖеÄÓ¢ÎÄÔ­ÎÄÈçÏ£º
8.1 GET
The GET method means retrieve whatever information (in the form of an
entity) is identified by the Request-URI. If the Request-URI refers
to a data-producing process, it is the produced data which shall be
returned as the entity in the response and not the source text of the
process, unless that text happens to be the output of the process.
The semantics of the GET method changes to a “conditional GET” if the
request message includes an If-Modified-Since header field. A
conditional GET method requests that the identified resource be
transferred only if it has been modified since the date given by the
If-Modified-Since header, as described in Section 10.9. The
conditional GET method is intended to reduce network usage by
allowing cached entities to be refreshed without requiring multiple
requests or trans


Ïà¹ØÎĵµ£º

Ajax ¼òµ¥Ê¾Àý

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <title>xmlhttprequest ajax demo</title>
    <script type ="text/javascript" language ="javascript" >
      ......

ÓÃSelenium ²âÊÔ Ajax ÏîÄ¿

´Ö¿´ Selenium
ÔÚµäÐ͵ÄÔÚÏßÉ̵êÖУ¬ÐèÒªÓû§ÊäÈë»òÑ¡ÔñÖڶಽÖèºó²Å¿ÉÒÔÍê³ÉÕû¸ö¹ºÎïÁ÷³Ì¡£×÷ΪwebÓ¦ÓõĿª·¢Õߣ¬ÄãÈçºÎ±£Ö¤Äã³ÌÐòµÄÖÊÁ¿ºÍÕýÈ·ÐÔÄØ£¿Èç¹ûÄÜÓа취²âÊÔÄ㹦ÄܵÄÕýÈ·ÐÔ£¬ÄÇÎÊÌâ¾ÍÓ­Èжø½âÁË£¬µ«ÈçºÎ×öµ½ÄØ?
Selenium ÊÇÒ»¸öÓÉThoughtWorks×öµÄרÃÅΪwebÓ¦ÓÃËù×öµÄ·Ç³£ÓÐЧµÄ¹¦ÄܲâÊÔ¹¤¾ß¡£Selenium µÄ tes ......

Ajaxµ¯³öʾÀý ¿É¿ØÖÆʱ¼ä×ÔÓÉÇл»ºÍ¹Ø±Õ

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajaxµ¯³öʾÀý-¿É¿ ......

½Ó´¥AjaxµÄµÚÒ»¸öʵÑéHello Word

<html>
<head>
<title>new ajax</title>
<mce:style type="text/css"><!--
body{
margin-top:50px;
}
.MyDiv{
font-size:12px;
border:1px solid #DDD;
background-color:#FFD;
margin:2px;
width:200px;
}

--></mce:style><style type="t ......

php µÄ ajax ʵÏÖ

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<input type="button" onclick="test();" value="Ìá½»"/>
<script type="text/javascript">
    function test(){
            var valid = {
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ