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

jquery¡¡ajaxµÄ¼òµ¥Ó¦ÓÃ

°Ñ×Ô¼ºÐ´µÄjqueryдÏÂÀ´
±ÈÈçÏÖÔÚÓÐÒ»¸ö½çÃæ£¬·Ö×óÓÒÁ½²à£¬µ±µã»÷×ó²àµÄ±êÇ©£¬È»ºóÔÚÓÒ²à¿òÏÔʾ£¬ÊµÏÖÎÞˢм¼Êõ£¬ÕâÊÇ×î¼òµ¥µÄajaxÓ¦Óá¡
function touser() {
$.ajax({
url: "UserTable.aspx?timeStamp=" + new Date().getTime(),
success: function(msg) {
$("#main").html(msg);
}
})
}
ÆäÖÐtouserÊÇÄãÉèÖõĵ¥»÷ʼþ£¬ÇмÇÒªÔÚÄãµÄ±êÇ©Àï¼ÓÉϸöµ¥»÷ʼþŶ£¬onclick£¬½ÓÏÂÀ´ÀïÃæÐ´µÄ¾ÍÊÇjquery¡¡ajaxÁË£¬ºÜºÃ¿´¶®µÄ£¬¾ÍÊÇÒ»¸öurl,È»ºó³É¹¦¾Í·µ»Ø£¬°ÑËû²åÈëµ½ÓÒ²à¿òÀÔÚÕâÀïÓÒ²à¿òÊÇÒ»¸ödiv£¬divµÄidΪmain£¬¼òµ¥°É¡£¡£¡££¬¡¡ÉÏÃæÀý×ӵĵ¥»÷ʼþÒ²¿ÉÒÔ»»³ÉjqueryµÄ
$(function(){
$("#clickuser").click(function(){
$.ajax({
url: "UserTable.aspx?timeStamp=" + new Date().getTime(),
success: function(msg) {
$("#main").html(msg);
}
})
})
})
ÔÚÕâÀïclickusrÊÇÄãÒªÉèÖõ¥»÷ʼþµÄ±êÇ©µÄ£É£Ä£¬ÕâÑùµÄ»°¾ÍÓÃÔÚ±êÇ©Éϼӵ¥»÷ʼþÁË¡£ÕâÁ½ÖÖ·½·¨ÓÃÄÄÒ»ÖÖ¾ÍÒª¿´ÊµÏÖÐèÒªÁË¡£
µ±Äãºó¼Ó½øÀ´µÄÒ³ÃæÏëʹÓõ¥»÷ʼþ¿ÉÒÔÓá¡function º¯ÊýÃû(){//ÄÚÈÝ}£¬ÕâÑùд¾ÍÒªÔÚ±êÇ©ÉϼÓÒ»¸öµ¥»÷ʼþonclick£¬¶Ô°É£¬Ò²¿ÉÒÔÓÃjqueryµÄ
$(function(){
$("#btnque").live('click', function() {
//ÀïÃæÐ´ÄãµÄ²Ù×÷
})
})
×¢ÒâÕâÀïÊÇÓõÄlive
ÔÙ¿´Ò»Ï£¬ÓÃjquery¡¡ajax µ÷Ó÷½·¨£¬ºÍ´«²Îµ÷Ó÷½·¨
$(function() {
$("#btntian").live('click', function() {
var user = $("#txtuser").val();
var pass = $("#txtmi").val();
var pass1 = $("#txtmmi").val();
$.ajax(
{
type: "POST",
url: "UserForm.aspx/AddUser",
data: "{username:'" + user + "',password:'" + pass + "',password1:'" + pass1 + "'}",
contentType: "application/json",


Ïà¹ØÎĵµ£º

MVC + JQUERY + AJAXµÄ¼¸ÖÖ·½Ê½

// ´«¹ýÈ¥Ò»¸ö¼òµ¥Öµ£¬»ñȡһ¸ö¼òµ¥Öµ
$.ajax({  
                type: "GET",
                url: '<%= Url.Action("xx", "Corp") % ......

È·¶¨ ASP.NET AJAX ¹¦ÄÜÊÇ·ñ¿ÉÓà AJAXÊÇ·ñ°²×°

Private static readonly object ReflectionLock = new object();
Lock (ReflectionLock)
{
Type scriptManagerType =
Type.GetType(
"System.Web.UI.ScriptManager, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35",
false);
......

ajax¼¼ÊõÏê½â

  AJAX¼¼ÊõÓ¦ÓÃÏê½â ÊÕ²Ø
AJAXÊÇAsynchronous JavaScript and XML µÄËõд¡£Ëü²¢²»ÊÇÒ»ÃÅеÄÓïÑÔ»ò¼¼Êõ£¬Ëüʵ¼ÊÉÏÊǼ¸Ïî¼¼Êõ°´Ò»¶¨µÄ·½Ê½×éºÏÔÚÒ»ÔÚͬ¹²µÄЭ×÷Öз¢»Ó¸÷×ÔµÄ×÷Óã¬Ëü°üÀ¨:ʹÓÃXHTMLºÍCSS±ê×¼»¯³ÊÏÖ;ʹÓÃDOMʵÏÖ¶¯Ì¬ÏÔʾºÍ½»»¥;ʹÓÃXMLºÍXSLT½øÐÐÊý¾Ý½»»»Óë´¦Àí;ʹÓÃXMLHttpRequest½øÐÐÒì²½Êý¾Ý¶ÁÈ¡;×î ......

ÓÐÓõÄAjax×Ô¶¯Ìáʾ½Å±¾ÊÕ¼¯

±¾ÎÄÊÕ¼¯ÁËһЩÓÐȤ²¢ºÜÓÐÓõÄ×Ô¶¯Ìáʾ½Å±¾£¬ËûÃÇÎÞÂÛ¶ÔÓÚ³õѧÕß»¹ÊÇרҵǰ¶Ë¿ª·¢ÈËÔ±¶¼ÊÇÊÊÓõġ£ÕâЩ½Å±¾°üÀ¨±ê×¼µÄ×Ô¶¯ÌáʾЧ¹û¡¢·Â
del.icio.usЧ¹û¡¢·ÂGoogelЧ¹ûÒÔ¼°Ê¹ÓÃ×Ô¶¯ÌáʾµÄ¸ß¼¶Êý¾Ý±í¹ýÂËЧ¹û¡£
ʹÓÃÒ»¸öºÏÊʵÄ×Ô¶¯Ìáʾ½Å±¾ÓÐЧµÄÌáÉýÄãµÄÍøÕ¾µÄÓû§ÌåÑé¡£
1. Ajax Auto Suggest v.2
AutoSuggest

ÀàÌ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ