AjaxÌØЧ ¶¯Ì¬Ê÷ÐÎÁбí Ö®¶þ
¼¼ÊõÒªµã
ÔÚ»ù±¾ÔÀíµÄ½éÉÜÖУ¬Á˽⵽ͨ¹ýÔÚ¸¸½ÚµãÄÚ¶¯Ì¬´´½¨×ӽڵ㣬²¢ÀûÓÃÑùʽ±íËõ½øÍê³ÉÊ÷ÐÎÁбíµÄ»ù±¾¿ò¼Ü¡£³ýÁËÕâÒ»µãÍ⣬»¹ÓÐÏÂÃæһЩÎÊÌâÐèÒª¿¼ÂÇ¡£
1£®½«¸¸½ÚµãËùÓеÄ×Ó½Úµã·ÅÈëÒ»¸öÈÝÆ÷ÖÐ
»ù±¾ÔÀíÒ³ÃæÖнö°üº¬ÁË´´½¨×Ó½ÚµãµÄ¹¦ÄÜ£¬²»¿ÉÒÔ½«´´½¨ºÃµÄ½ÚµãÔÙ½øÐйرղÙ×÷¡£Êµ¼ÊÓ¦ÓÃÖв˵¥×ÜÊÇ°üº¬´ò¿ªºÍ¹Ø±ÕÁ½ÖÖ²Ù×÷¡£ÎªÁË·½±ã½øÐйرղÙ×÷£¬½«×Ó½Úµã·ÅÈëÒ»¸öÈÝÆ÷ÖУ¬ÔڹرÕʱֻÐèÒªÉèÖÃÈÝÆ÷µÄÏÔʾÊôÐÔ¼´¿É¡£
2£®½Úµã¿ª¹ØµÄ¾ßÌåʵÏÖ
ÿ¸ö¸¸½ÚµãµÄËùÓÐ×Ó½Úµã·ÅÈëÈÝÆ÷Öкó£¬ÔÚµ¥»÷¸¸½ÚµãʱÅжÏ×Ó½ÚµãÈÝÆ÷µÄÏÔʾ״̬¡£Èç¹ûµ±Ç°Îª´ò¿ª×´Ì¬£¬Ôò½«Æä¹Ø±Õ£¬·´Ö®Ôò½«Æä´ò¿ª¡£¾ßÌåʹÓõķ½·¨Êǵ÷ÓýڵãµÄstyle.displayÊôÐÔ½øÐÐÅжϣ¬¹Ø±ÕʱµÄ״̬Ϊnone£¬·Çnoneʱ±íʾ´ò¿ª¡£ÎªÁËÇåÎúµØ±íʾ¸¸½ÚµãµÄ´ò¿ª»ò¹Ø±Õ״̬£¬Ê¹ÓÓ£«”ºÍ“£”×Ö·û½øÐбêʶ¡£
3£®½Úµã·ÖΪĿ¼½ÚµãºÍ·ÇĿ¼½Úµã
Ŀ¼½ÚµãÏ¿ɰüº¬×ӽڵ㣬·ÇĿ¼½ÚµãÒ²¿É³ÆΪҶ×ӽڵ㣬¼´¸Ã½Úµã²»°üº¬×ӽڵ㡣ÔÚ±¾ÀýÖжÔÕâÁ½ÖÖ½Úµã½øÐÐÇø±ð¶Ô´ý¡£µ¥»÷Ŀ¼½Úµã½«¶ÔÆä×Ó½Úµã½øÐÐÕ¹¿ª»ò¹Ø±Õ²Ù×÷¡£µ¥»÷·ÇĿ¼½Úµã½«Á´½Óµ½ÐµÄÒ³Ã棨ĿǰÔÝʱ½«ÐÂÒ³ÃæµØÖ·µ¯³ö£¬ÔÚʵ¼ÊÓ¦ÓÃÖпɽøÐÐÐ޸ģ©¡£
Ïà¹ØÎĵµ£º
1£¬Ð½¨Ò»ÃûΪlogin.htmµÄ¾²Ì¬ÍøÒ³Îļþ£¬×÷ΪµÇ¼ҳÃ棬Èçͼ
body±êÇ©´úÂë
<body onkeydown ="enterLogin()"> <!--Ìí¼Ó°´Ï¼üÅÌʼþ-->
<div style="text-align: center" mce_style="text-align: center">
<table border="1" cellpadding="1">
<tr>
<td align="center" s ......
½ñÌìÓÃajaxµÄpost·½Ê½´«ÖµÊ±£¬Óöµ½Ò»¸öÎÊÌ⣬ʼÖÕûÓÐÕÒµ½ÎÊÌâÔÒò¡£ºóÀ´°Ñ´«µÄÖµÖе¥ÒýºÅÈ¥µôºó£¬jsÕý³£ÁË¡£
¾¹ýËÑË÷£¬Ò²Ã»ÓÐÕÒµ½¾ßÌåÔÒò¡£×îºóͨ¹ýÒþ²ØÓòÀ´ÖÐת¸Ã×Ö·û´®¡£×îºó½â¾öÕâ¸öÎÊÌ⣡ÎÞÓïÁË£¡±¸Íü£¡
js²¿·Ý£º
////Òì²½µ÷Ó÷þÎñÆ÷ÐÅÏ¢
function CallServiceInsert()
{
var url="";
var para ......
Ò» .ÏÂÃæÏȶÔasp.net ajax×öÒ»¸ö¼òµ¥µÄ½éÉÜ:
asp.net ajax µÄ Ç°Éí¾ÍÊÇÎÒÃÇ´ó¼ÒÊìϤµÄAtlas £¬ºóÀ´±»ÕýʽµÄÄÉÈëµ½vs¿ò¼ÜÖÐÀ´¡£Í¨¹ý¶Ôasp.net ajaxµÄÓ¦Óà £¬ÎÒÃÇ¿ÉÒÔ·½±ãµÄ½«ajaxµÄÌØÐÔÒýÈëµ½ÏîÄ¿ÖÐÀ´£¬ÏÔÖøµÄÌá¸ßÓû§ÌåÑé¡£Æäʵasp.net ajaxµÄÌصãÒ²ÊǼ̳ÐÁË΢Èí²úÆ·Ò»¹áµÄÌص㣬¼òµ¥Ò×Ó᣹¦ÄÜÇ¿´ó¡£Ö»ÐèÒªÕÆÎÕasp ......
ͼ1.1 ʵÀýÔËÐÐЧ¹û
1.1.1 ¼¼ÊõÒªµã
¶¯Ì¬¼ÓÔØFAQµÄ¹ý³ÌÖ÷ÒªÊÇÀûÓÃXMLHttpRequest£¨ÒÔϼò³ÆXHR£©¶ÔÏóÓë·þÎñ¶ËͨÐÅ£¬¸ù¾ÝÓû§µ¥»÷µÄ¸ÐÐËȤÎÊÌ⶯̬½«ÄÚÈݼÓÔص½Ò³ÃæÖС£ÔÚ¾ßÌåʵÏÖʱ£¬ÓÐÁ½µãҪעÒâµÄÄÚÈÝ¡£
1£®¶Ôÿ¸öÎÊÌâ½øÐÐΨһ±êʶ
FAQÖ÷Òª°üº¬ÎÊÌâÓë½â´ðÁ½¸ö²¿·Ö£¬Óû§µ¥»÷Ò»¸öÎÊÌâʱ£¬·þÎñÆ÷±ØÐëÖªµÀ ......
Ê÷ÐÎÁÐ±í£¨²Ëµ¥£©ÔÚWebÓ¦ÓÃÖÐÊ®·Ö³£¼û£¬Í¨³£Ó¦ÓÃÓÚĿ¼ʽ½á¹¹£¬ÀýÈç²úÆ··ÖÀà¡¢²¿ÃÅ»ú¹¹µÈ¡£´«Í³µÄÊ÷Ðβ˵¥Ö÷ÒªÓÐÁ½ÖÖ¼ÓÔØ·½Ê½£ºÒ»ÖÖÊÇÒ»´ÎÐÔ¼ÓÔØÈ«²¿Êý¾Ý£¬ÁíÒ»ÖÖÊǸù¾ÝÓû§²Ù×÷Öð²½¼ÓÔØÊý¾Ý£¬µ«ÊÇÐèҪˢÐÂÒ³Ã档ǰÕß¼ÓÔØËٶȽÏÂý£¬²¢ÇÒ´æÔÚ´óÁ¿Êý¾ÝûÓб»Ê¹ÓõÄÀË·ÑÇéÐΡ£ºóÕß¿ÉÒÔÖð²½¼ÓÔØ£¬µ«ÊÇƵ·±µØË¢ÐÂÒ³ÃæÔÚ¸øÓû§´øÀ ......