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

javascript:history.go()ºÍHistory.back()µÄÇø±ðÊÕ²Ø

<input   type=button   value=ˢР  onclick="window.location.reload()">  
  <input   type=button   value=Ç°½ø   onclick="window.history.go(1)">  
  <input   type=button   value=ºóÍË   onclick="window.history.go(-1)">  
  <input   type=button   value=Ç°½ø   onclick="window.history.forward()">  
  <input   type=button   value=ºóÍË   onclick="window.history.back()">
 
ºóÍË+Ë¢ÐÂ
<input   type=button   value=ºóÍË   onclick="window.history.go(-1);window.location.reload()">
ÔÚC# Web³ÌÐòÖУ¬ÈçΪҳÃ水ťд·µ»ØÉÏÒ»Ò³´úÂë
this.RegisterClientScriptBlock("E", "<script language=javascript>history.go(-2);</script>");
ÆäÖУ¬history.go(-2)£¬ÒªÐ´Îª-2£¬ÒòÔÚ°´Å¥Ê¼þ´¥·¢Ç°£¬ÒÑË¢ÐÂÒ»´ÎÒ³Ã棬ËùÒÔÓ¦ÊÇ-2¡£
Response.Write("<script language=javascript>history.go(-2);</script>");
´Ë´¦Ò²ÒªÐ´Îª“-2”¡£¸úÖ±½Óд½Å±¾µÄÓÐËù²»Í¬¡£
 
history.back()ÊÇ»áÉÏÒ»Ò³
i=1
history.go(i)È¥Ö¸¶¨µÄijҳ
Èç¹ûÊÇhistory.go(0)ÄǾÍÊÇË¢ÐÂ
 
 
 
ÕâÁ½¸öÊôÓÚJS´úÂ룬Ï൱ÓÚIEµÄÇ°½ø¡¢ºóÍ˹¦ÄÜ¡£
¾ßÌåµÄÓô¦¾ÍÒª¿´Ê²Ã´Ê±ºòÐèÒªÕâ¸ö¾ÍÓÃÉÏ¡£±ÈÈçÓû§×¢²áʱµÄÑéÖ¤ÊǺǫ́ÑéÖ¤£¬²»·ûºÏÒªÇóµÄʱºò¾Í¿ÉÒÔÓÃÕâ¸ö£¬¿ÉÒÔ×î´óÏ޶ȱ£Ö¤Óû§ÉÙÖظ´ÊäÈëÊý¾Ý¡£
ÀýÈ磺ÔØÈëÒ³Ã棺
  function onLoadPage(){
    if(event.srcElement.tagName=="SPAN"){
        oFrame=top.window.middle.frames[2];
        oTxt=event.srcElement.innerText;
        switch(oTxt){
            case "Ç° ½ø":
                oFrame.history.go(1);
            case "ºó ÍË":
    &n


Ïà¹ØÎĵµ£º

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£ºÒ»¡¢Ç°ÑÔ

¡¶Îò͸JavaScript¡·Ñ§Ï°±Ê¼Ç
 
Ô­ÎĵØÖ·£ºhttp://www.cnblogs.com/leadzen/archive/2008/02/25/1073404.html
 
ÕâÊÇÒ»±¾ºÜÐÎÏóÉú¶¯µÄÊ飬ʹÎÒÃÇ¿ÉÒÔ¸üÉîµØÁ˽âÁËJavaScript¡£
 
ÒýÑÔ
 
   ±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂƵ ......

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£º°Ë¡¢¹¹Ôì¶ÔÏó

ÒýÑÔ
 
³ýJSONÍ⣬ÔÚJavaScriptÖÐÎÒÃÇ¿ÉÒÔʹÓÃnew²Ù×÷·û½áºÏÒ»¸öº¯ÊýµÄÐÎʽÀ´´´½¨¶ÔÏó¡£ÀýÈ磺
    function MyFunc() {};         //¶¨ÒåÒ»¸ö¿Õº¯Êý
    var anObj = new MyFunc();  //ʹÓà new ²Ù×÷·û£¬½èÖú MyFun º¯Êý£¬¾Í´´½¨Á ......

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£º¾Å¡¢Ô­Ðͱ϶

ÒýÑÔ
 
      prototypeÔ´×Ô·¨ÓÈí¼þ½çµÄ±ê×¼·­ÒëΪ“Ô­ÐÍ”£¬´ú±íÊÂÎïµÄ³õʼÐÎ̬£¬Ò²º¬ÓÐÄ£ÐͺÍÑù°åµÄÒâÒå¡£
 
prototypeÊôÐÔ
 
JavaScriptµÄËùÓÐfunctionÀàÐ͵ĶÔÏó¶¼ÓÐÒ»¸öprototypeÊôÐÔ¡£Õâ¸öprototypeÊôÐÔ±¾ÉíÓÖÊÇÒ»¸ö object ÀàÐ͵ĶÔÏó£¬Òò´ËÎÒÃÇÒ²¿ÉÒÔ¸ ......

Javascript[ת]


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

Íæ͸javascriptµ¯³ö´°¿Ú

Íæ͸javascriptµ¯³ö´°¿Ú
--------------------------------------------------------------------------------


¡¡¡¡¾­³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùһЩÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æȨÐÅÏ¢¡¢¾¯¸æ¡¢»¶Ó­¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌرðÌáʾµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ