JavaScript:history.go() µÄÃîÓÃ(ת)
ÔÚWeb¿ª·¢ÖУ¬»áÓöµ½´ÓÒ»Ò³£¨¸¸Ò³£©µ¼ÏòÁíÒ»Ò³£¨×ÓÒ³£©£¬²¢ÇÒÒªÇó“·µ»Ø”¸¸Ò³µÄÇé¿ö£¬ÔÚÕâÀïÈç¹ûÓÃASP.NETÌṩµÄ Response.Redirect()·½·¨£¬ÍùÍù²»»á´ïµ½ÀíÏëµÄЧ¹û£¬ÀýÈ磺·µ»Øºó£¬ÖØÐ¼ÓÔØÁËÒ³Ãæ£¬ÎÞ·¨±£´æµ¼Ïò×ÓҳǰµÄ״̬£¬µÈµÈ£¬ÔÚÕâÀïÎҾͽéÉÜ Ò»ÏÂÈçºÎʹÓÃJavaScriptÖÐhistory.go()º¯ÊýÀ´ÊµÏÖ·µ»Ø¹¦Äܲ¢ÇÒ±£´æ×¡×´Ì¬µÄ·½·¨¡£
Õâ¸öº¯ÊýÓÃÆðÀ´ºÜ¼òµ¥£¬Ö»ÒªÔÚÒ³ÃæÉϼÓÒ»¸öhtmlµÄinputÔªËØ£¬ÀýÈ磺
<input type="button" value="·µ»Ø">
È»ºóÔÙΪÕâ¸öÔªËØÌí¼ÓonclickÊôÐÔ£¬È磺
<input type="button" value="·µ»Ø" onclick="history.go(-1);">
ÕâÑù¾ÍÄÜ´ïµ½·µ»ØÉÏÒ»Ò³µÄЧ¹û¡£µ«ÊÇ£¬ÍùÍùÔÚʵ¼ùÖУ¬²¢Ã»ÓÐÕâô¼òµ¥£¬µ±ÄãÔÚÏò·þÎñÆ÷Ìá½»ÇëÇóµÄʱºò£¬ÒýÆðÒ³Ãæ»Ø·¢£¬ÄãÔÙÓÃhistory.go(-1) ÕâÕоͲ»ÁéÀ²£¬ËüÔÚÕâÀïÊÇ·µ»ØÄã»Ø·¢Ç°µÄ״̬£¬goºóÃæµÄ²ÎÊý£¬Êµ¼ÊÉϾÍÊDZêʶÄãÒª·µ»ØÄã»Ø·¢µÚǰn´ÎµÄ״̬£¬ËùÒÔÖ»ÒªÄܼÇס»Ø·¢Á˼¸´Î£¬¾ÍÄÜÓà history.go(-n)׼ȷµØ·µ»Øµ½¸¸Ò³ÁË¡£
ÔÚWeb¿ª·¢ÖУ¬È«¾Ö±äÁ¿Ò²ÊǴ治סµÄ£¬µ±Ò³Ãæ»Ø·¢ºó£¬È«¾Ö±äÁ¿µÄÖµ¾Í»á¶ªÊ§£¬È¡¶ø´úÖ®µÄÊÇÊÓͼ״̬£¬ËùÒÔÎÒÃǾÍÖ»ÄÜÓÃÊÓͼ״̬À´¼Ç¼»Ø·¢µÄ´ÎÊýÁË¡£ÄÇô¾Í·â×°Ò»¸öÊÓͼ״̬ÊôÐÔ°Ñ¡£
public int returnCount
{
get{
if(ViewState["returnCount"] == null)
ViewState["returnCount"] = 0;
return (int)ViewState["returnCount"];
}
set { ViewState["returnCount"] = value ;}
}
¶¨ÒåºÃÕâ¸öºó£¬°ÑËû·Åµ½Page_LoadÀïÃæ£¬ÈÃËûÿ´ÎÔÚÒ³Ãæ»Ø·¢Ê±¼õ1£¬ÕâÑù¾ÍÄÜ׼ȷµÄ¼Çס»Ø·¢Á˼¸´Î¡£
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
Ò³ÃæÌá½»Êý¾ÝÒ»°ãÓÐÁ½ÖÖ·½·¨£ºget,post¡£post¾ÍÊÇËùνµÄformÌá½»£¬Ê¹ÓÃÊÓͼ£»getÊÇͨ¹ýurlÌá½»¡£
Get·½·¨Ò»°ãÓúǫ́´úÂ루Èçasp,asp.net£©»ñµÃ²ÎÊý£¬´úÂëºÜ¼òµ¥£ºRequest.QueryString["id"];¼´¿É»ñÈ¡¡£
ÓÐЩʱºòÐèÒªÖ±½ÓÔÚǰ̨»ñÈ¡url²ÎÊý£¬ÒªÓõ½javascript£¬jsûÓÐÖ±½Ó»ñÈ¡url²ÎÊýµÄ·½·¨£¬ÄÇô£¬ÎÒÃÇÈçºÎͨ¹ýjs ......
javascriptÄÚ´æÐ¹Â¶µÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬ÔÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊ ......
http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/
demo£ºhttp://css-tricks.com/examples/FeaturedContentSlider/
Featured Content Slider Using jQuery
http://demo.webdeveloperplus.com/featured-content-slider/ ......
ZT:http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance.html
ÉÏÒ»´ÎµÄÎÄÕ£¬Ö÷Òª½éÉÜÁËÈçºÎ"·â×°"Êý¾ÝºÍ·½·¨£¬´ÓÔÐͶÔÏóÉú³ÉʵÀý¡£
½ñÌìÒª½éÉܵÄÊÇ£¬¶à¸öÔÐͶÔÏóÖ®¼äÈçºÎ"¼Ì³Ð"¡£
±ÈÈ磬ÏÖÔÚÓÐÒ»¸ö"¶¯Îï"¶ÔÏó£¬
¡¡¡¡function Animal(){
¡¡¡¡¡¡¡¡this.species = "¶¯Îï";
¡¡¡¡}
»¹ÓÐ ......