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¡·Ñ§Ï°±Ê¼Ç
ÔÎĵØÖ·£ºhttp://www.cnblogs.com/leadzen/archive/2008/02/25/1073404.html
ÕâÊÇÒ»±¾ºÜÐÎÏóÉú¶¯µÄÊ飬ʹÎÒÃÇ¿ÉÒÔ¸üÉîµØÁ˽âÁËJavaScript¡£
ÒýÑÔ
±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂƵ ......
ÒýÑÔ
³ýJSONÍ⣬ÔÚJavaScriptÖÐÎÒÃÇ¿ÉÒÔʹÓÃnew²Ù×÷·û½áºÏÒ»¸öº¯ÊýµÄÐÎʽÀ´´´½¨¶ÔÏó¡£ÀýÈ磺
function MyFunc() {}; //¶¨ÒåÒ»¸ö¿Õº¯Êý
var anObj = new MyFunc(); //ʹÓà new ²Ù×÷·û£¬½èÖú MyFun º¯Êý£¬¾Í´´½¨Á ......
ÒýÑÔ
prototypeÔ´×Ô·¨ÓÈí¼þ½çµÄ±ê×¼·ÒëΪ“ÔÐÍ”£¬´ú±íÊÂÎïµÄ³õʼÐÎ̬£¬Ò²º¬ÓÐÄ£ÐͺÍÑù°åµÄÒâÒå¡£
prototypeÊôÐÔ
JavaScriptµÄËùÓÐfunctionÀàÐ͵ĶÔÏó¶¼ÓÐÒ»¸öprototypeÊôÐÔ¡£Õâ¸öprototypeÊôÐÔ±¾ÉíÓÖÊÇÒ»¸ö object ÀàÐ͵ĶÔÏó£¬Òò´ËÎÒÃÇÒ²¿ÉÒÔ¸ ......
<!--
/* 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µ¯³ö´°¿Ú
--------------------------------------------------------------------------------
¡¡¡¡¾³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùһЩÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æȨÐÅÏ¢¡¢¾¯¸æ¡¢»¶Ó¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌرðÌáʾµ ......