Èç¹ûÄãÎÊÎÒÍøÕ¾ÖÐ×îÓ°ÏìÍøÕ¾´ò¿ªËٶȵÄÊÇʲô£¿ÎÒ»á¸æËßÊÇÍøÕ¾ÖеÄjavascript£¬¼ò³ÆJS¡£Ä£°åÖÐÒýÓõÄJSÎļþÔ½¶à£¬´ò¿ªËÙ¶ÈÔ½Âý£¬ÕâµãÎÒÉîÓÐÌå»á£¬²»ÐÅÄã¿´¿´Â¬ËÉËɲ©¿ÍÊ×Ò³£¬Ê¹¾¢ÓÅ»¯ºóÒÀÈ»ÓÐ100KµÄÎļþ¡£Ï¸¶ÁÍêÕâƪÎÄÕ£¬¹»ÄãÓÅ»¯´ó°ëÌìµÄÁË£¬¹ØÓÚJSÓÅ»¯·½·¨´ó¶¼ÍÑÀë²»ÁËÕâÈýÖÖ·½·¨¡£
£¨ÍøÒ³×Ü´óСΪ155.k£¬¶øJS¾ÍÕ¼ÁË100.3K£©
ÊÇʱºòÓÅ»¯ÏÂJSÁË
¹ØÓÚJSÓÅ»¯µÄÎÄÕÂÒѾºÜ¶àÁË£¬´ó¶à¼¼ÊõÐÔºÜÇ¿£¬Ïñʲô±äÁ¿¡¢×Ö·û´®¡¢ÀàÐÍ£¬¾Í²»×ö½éÉÜÁË£¬Ò²²»ÐèÒª½éÉÜ£¬ÎÒÒ²²»¶®£¬ÄãÖªµÀÁËҲûÓᣴó¶àÊýÕ¾³¤¶¼ÊÇ“ÄÃÀ´Ö÷Ò唣¬ÎÒÖ»ÐèÒª¸æËßJSÔõô·Å£¬É¾ÄÇÀï¾Í¿ÉÒÔÁË¡£
ÏÖÔÚµÄÍøÕ¾¶¼¼ÓµÄÓÐͳ¼Æ´úÂë¡¢·ÖÏí¹¤¾ß¡¢ÆÀÂÛÁÐ±í¡¢Ïà¹ØÎÄÕ²å¼þµÈ¹¤¾ß£¬¶øҪʵÏÖÇ¿´óµÄ¹¦ÄÜ£¬±ØÐëʹÓÃJSÎļþ£¬ÕýÊÇÕâЩJS²å¼þ£¬ÔÙÔöÇ¿ÁËÍøÕ¾¹¦ÄܵÄͬʱ£¬Ò²¸øÓ°ÏìÁËÍøÕ¾Ëٶȡ£
×î³£ÓõÄJSÓÅ»¯°ì·¨
ͨ¹ý²©¿Íµ÷ÓÃJSÀ´¿´£¬Ä¿Ç°×îÓ°ÏìËٶȵÄΪÎÞÃÙ²å¼þ£¨952ms£©£¬Äø£Äܹã¸æ£¨434ms£©¡£Èç¹ûȷʵҪÓÿÉÒÔ±£Áô£¬Êʵ±µÄ¸ù¾Ý¹Ù·½½Ì²Ä×ö×öÓÅ»¯£¬ÏÂÃæ¬ËÉËɽéÉܼ¸¸ö×î³£ÓõÄJSÓÅ»¯·½·¨¡£
·½·¨Ò»£º°Ñ²»ÖØÒªµÄJS·ÅÔÚÒ³Ãæ×îµ×²¿
ÕâÊÇ×î¼òµ¥£¬Ò²ÊÇЧ¹û×îºÃµÄÓÅ»¯·½·¨£¬°Ñ²»ÖØÒªµÄJSͨͨ·Åµ½Ò³ÃæµÄ×îÏÂÃæbodyµÄÉÏÃ棬ʵÏÖÒì²½¼ÓÔØ£¬Ò²¾ÍÊǵÈÍøÒ³¶¼¼ÓÔØÍêÁË£¬×îºóÔÚ¼ÓÔØÕâЩ²»ÖØÒªµÄJS£¬ÕâÑù¾Í²»Ó°ÏìÍøÒ³ËÙ¶ÈÁË¡£
ÈçµÍµ÷Ó뻪ÀöÄ£°åÖй«¹²µÄutil.js¹«¹²Îļþ£¬Ä¬ÈÏЧ¹ûΪ£¬ä¯ÀÀÍøҳʱ»áÔÚÍøÒ³ÖгöÏÖ“»Ø¶¥²¿¡¢Ð´ÆÀÂÛ”ÌØЧ¡£ÏÖÔÚ°Ñwumii£¨ÎÞÃÙ²å¼þJS£©ºÍjiathis£¨·ÖÏí¹¤¾ßJS£©Í³Ò»ÕûºÏµ½util.jsÎļþÖÐÁË¡£
£¨²»ÖØÒªµÄJS¶¼·Åµ½Ò³Ãæ×îµ×²¿ÁË£©
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ