ÈÃjava³ÌÐòÔÚÖ´Ðйý³ÌÖÐÔÝÍ£nÃëÖÓ. - Java / Web ¿ª·¢
ÎÒÐèÒªÔÚÒ»¸öforÑ»·ÀïÃæÿѻ·Ò»´Îºó,ÔÝÍ£nÃëÖÓ,ÔÙÖ´ÐÐÏÂÒ»´ÎÑ»·.ÎÒ²»ÏëÓÃThread.sleep(n);Õâ¸ö·½·¨,ÇëÎÊ»¹ÓÐÆäËûµÄ·½·¨¿ÉÒÔʵÏÖÕâ¸ö¼òµ¥ÒªÇóÂð?Óмòµ¥´úÂë¸üºÃ,лл!
ÆÚ´ýºÃµÄ·½·¨£¡
ÎÒÖªµÀµÄÒ²¾ÍÊÇÕâ¸öÁË
ÏëÖªµÀ§Ö÷ΪºÎ²»ÏëÓÃThread.sleep(n)Õâ¸ö·½·¨£¬ÊÇÒòΪʹÓÃThread.sleep(n)ÓÐʲôȱÏÝ£¬»¹ÊÇ´¿´âÏëÓÃ×Ô¼ºµÄ´úÂë´úÌæÕâ¸ö¹¦ÄÜ
òËƺÃÏó´ó¸ÅÖ»ÓÐsleepÄÜ×ö¡£¡£
try{
Thread thread = Thread.currentThread();
thread.sleep(1500);//ÔÝÍ£1.5Ãëºó³ÌÐò¼ÌÐøÖ´ÐÐ
}catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
³ýÁË sleep ÎÒÒ²Ïë²»µ½Ê²Ã´ÁË£¬²ÑÀ¢
°®ÄªÄÜÖú
òËÆÖ»ÄÜÕâÑùÁË
ÎÒÒ²Ö»ÖªµÀsleep ÁË
Äã¿ÉÒÔÓÃËÀÑ»·~~~~~~~~
»¹ÓÐÒ»¸ö·½·¨£¬µ«ÊǺͲÙ×÷ϵͳÓйأ¬¶øÇÒʱ¼äÒ²²»¿É¿Ø~~~¾ÍÊǵ÷ÕûÄãµ±ÏÈÏ̵߳ÄÓÅÏȼ¶
ÆäʵºÜ¶à°ì·¨ÄÜʵÏÖ×èÈûµ±Ç°Ị̈߳¬µ«ÊÇÒªÃüµÄÊÇÄãÒª¾«È·µÄ¿ØÖÆʱ¼ä¡£
ÕâÑùµÄ»°£¬¼´Ê¹ÊÇ×èÈûÁ˵±Ç°Ị̈߳¬ÄãÒ²±ØÐëÔÚ×èÈû´¦ÀíÖмÓÈëÂÖѯʱ¼äµÄ²Ù×÷¡£
Èç¹û²»ÓÃsleep£¬»úÆ÷¿ÉÄܽøÈë¼ÙËÀ״̬¡£
ÄãÊǵ÷ÊÔ³ÌÐòÂð£¿
µÈ´ýºÃ·½·¨
ÎÒÏëÓö¯Ì¬´úÀí£¬¿ÉÒÔÂð£¿
ÄãÏë½ÐËûÐÝÃߣ¬ÓÖ²»ÈÃÐÝÃß¡£¡£¸ãɶ¡£¡£
Äã¿ÉÒÔÔÚforÄÇÀïÉè¸ö¶Ïµã£¬È»ºódebugÏëÍ£¶à¾ÃÍ£¶à¾Ã£¬¹þ¹þ¡£
¿ªÍæЦµÄ°¡£¬³ýÁËsleepÎÒÒ²²»ÖªµÀ¡«¡«¡«
×öÒ»¸ötimer£¿ÄѵÀ²»±Èsleep¸ü·±Ëö£¿
»òÕß˵ÉÔ΢¸Ä±äÒ»ÏÂÄãµÄÒªÇó£º
ÿ¸ô15ÃëÖÓÑ»·Ò»´Î£¿
°³Ò²Ö»ÖªµÀsleep
forÑ»·°¡£¡Á½¸öforǶÌס£
{{----}
Ïà¹ØÎÊ´ð£º
ÎÊÌâÃèÊö£ºÐ´ÈÕÖ¾¹¦ÄÜ£¬Ð´ºÃµÄдÈÕÖ¾·þÎñ£¬ÆäËûÓû§Í¨¹ýhttpµ÷Ó÷þÎñ£¬´«Èë²ÎÊý£¬È»ºó¼Ç¼ÈÕÖ¾£¬
ÎҵķþÎñ¸ÃÔõôд£¬ ±ðÈËÔõôͨ¹ýhttpµ÷ÓÃÎҵķþÎñ£¬ÎÒÓÃwebserviceдºÃÁËÒ»¸ö£¬¿ÉÊDz¢·¢ÓÐÉÏÏߣ¬Ïë¸ÄÓ ......
ÎÒµÄMysql ʹÓõÄʱºò ÓÃdos½¨Á¢µÄÊý¾Ý±í ÔÚdosÖÐÄÜÏÔʾ³öÖÐÎÄ
µ«ÊÇÔÚ ÆäËûµÄ¿ÉÊÓÒ³Ãæ ºÍÍøÒ³Öж¼ÏÔʾÂÒÂë ÈçºÎ½â¾ö£¿
ÔÚmysql¿ØÖÆ̨:show variables like 'char%';Ìù½á¹û³öÀ´¿´¿´¡£
mysqlÃüÁîÐÐģʽÏÂ: ......
Èý¸öÊýx,y,z ±È´óС..
var x,y,z,t;
if (x>y)
{t=x;x=y;y=t;} //½»»»x,yµÄÖµ
if(x>z)
{t=z;z=x;x=t;}//½»»»x,zµÄÖµ
if(y>z)
{t=y;y=z;z=t;}//½»»»z,yµÄÖµ
ÕâÊÇ ......
Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼
È» ......