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

ÔöÇ¿AJAX/Javascript/JSÍøÒ³ÎÄ×ÖץȡÄÜÁ¦


±¾ÎÄÊǶԡ¶AJAX¶¯Ì¬ÍøÒ³ÐÅÏ¢ÌáȡԭÀí¡·
µÄ²¹³ä£¬Ç°ÎÄ×ܽáÁËÁ½ÖÖAJAXÍøÒ³ÎÄ×ÖµÄץȡ·½·¨£º
ÍøÒ³ÎÄ×ÖÔÚ¼ÓÔØHTMLÎĵµ£¨document£©µÄʱºòÓÃJavascript´úÂë»ñÈ¡ºÍÕ¹ÏÖ£¬´ËJavascript´úÂëÔÚ·¢ËÍloadʼþ֮ǰÔËÐУ¬ÄÇô½ÓÊÕµ½loadʼþ±íʾËùÓеÄÄÚÈݶ¼¼ÓÔØÍêÁË
ÍøÒ³ÎÄ×ÖÔÚ¼ÓÔØÍêHTMLÎĵµ£¨document£©ºóÔÚij¸öʱ¿ÌÓÃJavascript´úÂë»ñÈ¡ºÍÕ¹ÏÖ£¬´ËJavascript´úÂëÔÚ·¢ËÍloadʼþÖ®ºóÔËÐУ¬ÄÇô½ÓÊÕµ½loadʼþ²¢²»±íʾ±íʾËùÓеÄÄÚÈݶ¼¼ÓÔØÍêÁË£¬ÐèÒªÌØ±ðµÄÅбð»úÖÆ¡£
ÉÏÊöÁ½ÖÖÇé¿öʵ¼ÊÉÏûÓп¼ÂÇAJAXµÄÒ»ÏîÖØÒªÌØÐÔ£ºÒì²½¼ÓÔØ¡£Ò²¾ÍÊÇHTMLÍøÒ³ÎÄ×ÖÄÚÈݲ¢²»ÊÇÓëHTMLÎĵµÍ¬²½¼ÓÔØµÄ£¬¶øÊÇÔÚÌØ¶¨ÇéÐÎÏ£¨Àý
È磬Óû§µã»÷³¬Á´½Ó£©Òì²½µØ´Ó·þÎñÆ÷ÉÏ»ñÈ¡²¢Õ¹Ïֵġ£´Ëʱ£¬²»ÄÜʹÓÃloadʼþ´¥·¢ÍøÒ³ÎÄ×Öץȡ¡£DataScraper´ÓV4.2.0B57°æ±¾¿ªÊ¼
½øÐÐÁËÔöÇ¿£¬Äܹ»×¥È¡Òì²½¼ÓÔØµÄÄÚÈÝ¡£
ÒòΪûÓÐloadʼþ´¥·¢×¥È¡²Ù×÷£¬Òª½øÐкÏÀíÅäÖ㬸æÖªDataScraper²»ÒªµÈ´ýloadʼþ¡£Èç¹ûÊÇÖÜÆÚÐÔ×Ô¶¯×¥È¡ÍøÒ³ÎÄ×Ö
£¬Í¨¹ýÉèÖÃÅÅÆÚÖ¸ÁîÎļþ
µÄ
waitOnload²ÎÊý¾Í¿ÉÒÔ´ïµ½¸ÃÄ¿µÄ£¬È»¶ø£¬ÔÚV4.2.0B57֮ǰµÄ°æ±¾£¬ËùÓÐÊÖ¹¤Æô¶¯µÄץȡ¶¼ÊÇwaitOnload=true£¬Ò²¾ÍÊǵȴý
loadʼþ£¬ÌáÈ¡Òì²½¼ÓÔØÄÚÈÝʱºÜ¿ÉÄܳöÏÖ£ºTimeout to load the page
´íÎó¡£´ÓV4.2.0B57°æ±¾¿ªÊ¼£¬Ôö¼ÓÁËDataScraper²Ëµ¥£ºÅäÖÃ
->µÈ´ýload
£¬ÕâÊÇÒ»¸öcheckbox²Ëµ¥£¬½«¹³È¥µô¾Í²»Ôٵȴýloadʼþ¡£
ÀýÈ磬MetaCamp·þÎñÆ÷ÉÏÓиöÖ÷Ì⣺demo_js_paging_sohu£¬ÓÃÓÚץȡsohuÃûÈ˲©¿Í
ºÍ
Ïà¹ØÆÀÂÛ£¬ÆÀÂÛÄÚÈÝÊÇAJAX¶¯Ì¬Éú³ÉµÄ£¬µ±ÃûÈ˲©¿ÍºÜÊܹØ×¢Ê±£¬»áÓкܶàÆÀÂÛ£¬ÕâЩÆÀÂ۷ֳɶàÒ³ÏÔʾ£¬µ±Óû§µã»÷“ÏÂÒ»Ò³”³¬Á´½Óʱ£¬²¢Ã»ÓмÓÔØÒ»¸öÐÂ
µÄHTMLÍøÒ³£¬¶øÊÇÒì²½´ÓÍøÕ¾ÉÏ»ñÈ¡ÏÂÒ»Ò³ÆÀÂÛÄÚÈÝ£¬¶¯Ì¬Ð޸ĵ±Ç°ÍøÒ³µÄDOM½á¹¹½øÐÐÕ¹ÏÖ£¬Òò´Ë£¬Ã»ÓÐÒ³Ãæ¼ÓÔØ¾ÍûÓÐloadʼþ¡£Òª·­Ò³ÌáÈ¡ÕâЩÆÀ
ÂÛ£¬ÐèÒªÉèÖÃwaitOnload=false£¬·ñÔò»áÓöµ½Timeout to load the page ´íÎó¡£
×¢Òâ
£ºÒì²½¼ÓÔØµÄÄÚÈÝʲôʱºò¼ÓÔØÍêÁË£¬Ã»ÓÐÒ»¸öÈ·ÇеÄʱ¼äµã£¬ÈËÔĶÁÍøÒ³Ê±£¬¸ù¾ÝÉÏÏÂÎÄ¿ÉÒÔÀí½â²¢ÅжÏÊÇ·ñÒѾ­½«Òì²½ÄÚÈݼÓÔØÉÏ
ÁË£¬µ«ÊǼÆËã»ú³ÌÐò²»ÄÜÀí½âÓïÒ壬DataScraper¾¡Á¿Ê¹ÓÃÒ»ÖÖÖÇÄÜ·½·¨¼ÓÒÔÅжϣ¬È»¶øÈÔÈ»ÓÐÎóÅеĿÉÄÜ£¬Ö÷Òª·¢ÉúÔÚÄ¿±êÍøÕ¾µÄ·þÎñÖÊÁ¿ºÜ²»Îȶ¨µÄ
ʱºò£¬Òì²½¼ÓÔØÄÚÈݲ¢½øÐÐÏÔʾˢеĹý³ÌÊÇʱ¶ÏÊ±ÐøµÄ£¬¶ø²»ÊdzÖÐøµÄ¾ùÔȵؽøÐУ¬´Ëʱ£¬DataScraper¾Í»á³öÏÖÎóÅС£


Ïà¹ØÎĵµ£º

javascript ÀúÊ·Õ»

var Stack=function(limt_length){
this.stack=new Array();
this.limt=(limt_length)?limt_length:8;
}
Stack.prototype.push=function(o){
 if(this.exist(o)){
  this.remove(o);
  this.stack.unshift(o);
 }else{
  this.stack.unshift(o);
 }
 while(t ......

JavaScriptµÄnamespace(Ò»)

ÒýÈëÃüÃû¿Õ¼ä֮ǰ£¬Ò»¸öÁ·¢ÈËԱͷÌÛµÄÎÊÌâ¾ÍÊÇÈçºÎ·ÀÖ¹º¯ÊýÃû/ÀàÃûºÍÆäËûÈ˵ijåÍ»£¬ÔÚÒ»¸ö¹«Ë¾ÄÚ²¿ÏîÄ¿×éÖ®¼ä¿ÉÒÔͨ¹ýÃüÃûÔ¤¶¨£¨±ÈÈç¼Óǰ׺
µÈ£©½â¾öÕâ¸öÎÊÌ⣬µ«ÊǰÑÊÓÏ߷ŵ½Õû¸öÈí¼þ¿ª·¢ÁìÓò£¬ÔÚµ±½ñЭ×÷¿ª·¢Ï൱ʢÐеÄʱ´ú£¬Õâ¸öÎÊÌâÈ´ÒÀÈ»´æÔÚ¡£ÔÚʹÓöà¸öµÚÈý·½¿ò¼Ü»òÀà¿âµÄʱºò£¬ÄãΨһÄÜ×÷
µÄ¾ÍÊÇÆíµ»ËüÃǵÄÃüà ......

Javascript ÖÐ String.replace( ) µÄÃîÓÃ

<script language="javascript">
<!--
String.prototype.replaceAll = stringReplaceAll;
function stringReplaceAll(AFindText,ARepText){
raRegExp = new RegExp(AFindText,"g");
return this.replace(raRegExp,ARepText)
}
var content = "%sfasf%sfd%asdfsadf%1111%"
 // °Ñ ËùÓÐµÄ % Ìæ»»Îª #
......

php jquery Ajax Ìá½»¡¢¶ÁÈ¡ json

<mce:script type="text/javascript" language="javascript"><!--
function del(com_id,meet_id){
$.ajax({
url:'../company/meet.Ajax.php',
type:'POST',
data:{com_id:com_id,meet_id:meet_id},
dataType:"json",
timeout: 10 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ