AJax¼¼Êõ

Ç°¶Ë³£ÓõÄͨÐż¼Êõ(5)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-07-05 13:00 ÎÒÒªÆÀÂÛ( )

ºǫ́½ø³Ì´úÂë( compute.js ) var i=0;function timeX(){i++;postMessage(i);if(i9){postMessage(no ÎÒ²»Ï붯ÁË);close(); //ÖÐÖ¹Ïß³Ì}setTimeout(function(){timeX();},1000);}timeX();//ÊÕµ½Ö÷Ï̵߳ÄÏûÏ¢onmessage

ºǫ́½ø³Ì´úÂë( compute.js )

var i=0; function timeX(){ i++; postMessage(i); if(i>9){ postMessage('no ÎÒ²»Ï붯ÁË'); close(); //ÖÐÖ¹Ïß³Ì } setTimeout(function(){ timeX(); },1000); } timeX(); //ÊÕµ½Ö÷Ï̵߳ÄÏûÏ¢ onmessage = function (oEvent) { postMessage(oEvent.data); };

ÉÏÊö´úÂë¼òµ¥µÄ˵Ã÷һϣ¬ Ö÷½ø³ÌÓëºǫ́½ø³ÌÖ®¼äµÄ»¥ÏàͨÐÅ¡£

·ÖÏí¸øС»ï°éÃÇ£º

±¾ÎıêÇ©£º Ajax/">Ajax

Ïà¹ØÎÄÕÂ

·¢±íÆÀÂÛÔ¸ÄúµÄÿ¾äÆÀÂÛ£¬¶¼Äܸø´ó¼ÒµÄÉú»îÌíÉ«²Ê£¬´øÀ´¹²Ãù£¬´øÀ´Ë¼Ë÷£¬´øÀ´¿ìÀÖ¡£

  • ±¾Àà×îÈÈÐÂÎÅ

  • ¡¡

    1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

    Ïà¹ØÎÄÕÂ
    • Ç°¶Ëѧϰ±Ê¼Ç--AJAXµÄʹÓ㨶þ£©

      Ç°¶Ëѧϰ±Ê¼Ç--AJAXµÄʹÓ㨶þ£©

      2017-06-28 18:03

    • [Öö¥] ´ÓÁ㿪ʼѧϰWEBÇ°¶ËÖ®Êý¾Ý½»»¥£¨Ajax£©

      [Öö¥] ´ÓÁ㿪ʼѧϰWEBÇ°¶ËÖ®Êý¾Ý½»»¥£¨Ajax£©

      2017-06-19 13:03

    • Ç°¶Ëѧϰ1¡ª¡ªBootstrap jquery ajax

      Ç°¶Ëѧϰ1¡ª¡ªBootstrap jquery ajax

      2017-06-17 16:06

    • WebÇ°¶ËÃæÊÔ¼¼ÇÉ£ºÃæÊÔºãÉúµç×ÓWebÇ°¶Ë¿ª·¢¹¤³Ìʦ¾­Ñé

      WebÇ°¶ËÃæÊÔ¼¼ÇÉ£ºÃæÊÔºãÉúµç×ÓWebÇ°¶Ë¿ª·¢¹¤³Ìʦ¾­Ñé

      2017-06-09 17:01

    ÍøÓѵãÆÀ
    Ã