ÕÒÁËÒ»¸ö,µ«ËÑË÷ºó²»Ìáʾ,ºÃÏñÎÊÌâ,²é²»³öÀ´ÔÒò,Ë°ï×Å¿´Ò»ÏÂ
http://www.chinaz.com/Program/Asp/020Q062632010.html
End_rbody_64769658//-->
¸Ã»Ø¸´ÓÚ2010-04-19 08:15:36±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ
¾Ù±¨
¹ÜÀí
TOP
ccppvv
(ccppvv)
µ ......
ÎÒÔÚÒ³ÃæÉÏͬʱʹÓÃasp.net ajax ºÍÓÃjs·½·¨ÊµÏÖÎÞˢУ¬³öÏÖ³åÍ»ÎÊÌ⣨µ±È¥µôÆäÖÐÒ»¸ö¶¼ÄÜʹÓã©£¬ÇëÎÊÈçºÎ½â¾ö£¿
function initAjax() {var ajax = false;if(window.XMLHttpRequest) {ajax = new XMLHttpRequest();return ajax;}else {if(window.ActiveXObject) {try{ajax = new ActiveXObject("Msxml2.XMLHTTP&quo ......
¸÷λ´óϺ£¬»áµÄÀ´°ï¸öæ¡£
ÔÚʹÓÃajax+phpÖУ¬ÎªÊ²Ã´phpºǫ́µÄÀϲ»°´ajaxµÄÇëÇóË¢ÐÂÄØ¡£ÀϳöÏÖÉÏÒ»´ÎÇëÇóµÄ·µ»Ø½á¹û¡£¶àÊýÇé¿öϾÍÖ»ÓеÚÒ»´ÎʹÓÃajax´«Êý¾ÝµÄʱºòÊÇÕýÈ·µÄ£¬ÔÙ´«µÄ»°£¬¿ÉÄÜ»¹ÊÇÉÏÒ»´Î²ÐÁôµÄ½á¹û¡£
ÓÐûÓÐÓöµ½Õâ¸öÎÊÌâµÄ£¿´óϺÃÇ°ïæ½â¾öһϣ¿
¸øÇëÇóURL¼Ó¸öËæ»úÊý²ÎÊý Èç¹û»¹ÊÇÉÏÒ»´Î½á¹ûµÄ»° ¼ì²éPHP³ ......
ËÄÜ°ÑÏÂÃæ´úÂë¸Ä³ÉVB°æµÄ£¿
function Ajax() {
if (typeof (Ajax.initMethod) == "undefined") {
Ajax.prototype.GetHttpRequestObject = function() {
if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
......
¿É²»¿ÉÒÔÕâÑùÈÏΪ
ajaxºÍjquery¶¼ÊÇjsµÄ×Ó¼¯¡£
ajax¾ÍÊÇ¿ÉÒÔ´Ó¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½øÐÐͨÐŵÄjs
jqueryÊÇjsµÄ¿â£¬Ð´ºÃÁ˺ܶàjsµÄЧ¹û£¬ÎÒÃÇÄÃÀ´ÓþͺÃÁË¡£
ÄÇjqueryÄÜ·ñ´úÌæjsÄØ£¿Õâ3Õߣ¬Ó¦¸ÃÔõô¸öѧϰ˳Ðò£¿
¸öÈ˾õµÃ ajaxÊÇjsµÄ×Ó¼¯Õâ¾ä»°²»ÕýÈ·¡£ÆäËûµÄ²»ÖªµÀ
js -> jq ->ajax
js ajax jq
Æäʵд¶àÁ˾ ......
ÔÚ±¾µØ²âÊÔʱ¿ÉÒԵġ£
ÉÏ´«µ½·þÎñÆ÷¾Í³öÏÖûÓÐȨÏÞÎÊÌâ¡£
ÍøÉÏËÑË÷˵²»Äܹ»¿çÓò£¬µ«ÊÇÎÒûÓпçÓò°¡£¡
¶¼ÊÇÔÚ·þÎñÆ÷ÉÏÃæÔõô»áÓпçÓòÄØ£¿
¸ÃÔõô½â¾ö£¿£¿£¿£¿£¿£¿
´úÂëÌù³öÀ´¡£¡£
function Ajax(url,parm,funname)
{
alert(url)
var xmlhttp=null;
if(windo ......