Êý×é·½·¨½â¾öJS×Ö·û´®Á¬½ÓÐÔÄÜÎÊÌâÓÐÕùÒé
1¡¢´«Í³ÉÏ£¬×Ö·û´®Á¬½ÓÒ»Ö±ÊÇjsÖÐÐÔÄÜ×îµÍµÄ²Ù×÷Ö®Ò»¡£
var text="Hello";
text+=" World!";
ÔçÆÚä¯ÀÀÆ÷ûÓжÔÕâÖÖÔËËã½øÐÐÓÅ»¯¡£
ÓÉÓÚ×Ö·û´®ÊDz»¿É±äµÄ£¬ÕâÒâζ×ÅÒª´´½¨Öмä×Ö·û´®À´´æ´¢Á¬½ÓµÄ½á¹û¡£Æµ·±µØÔÚºǫ́´´½¨ºÍÏú»Ù×Ö·û´®µ¼ÖÆÐÔÄÜÒì³£µÍÏ¡£
2¡¢·¢ÏÖÕâÒ»µãºó£¬¿ª·¢ÕßÃÇÀûÓÃÊý×é¶ÔÏó½øÐÐÓÅ»¯¡£
var buffer=[],i=0;
buffer[i++]="Hello";//ͨ¹ýÏàÓ¦Ë÷ÒýÖµÌí¼ÓÔªËرÈpush·½·¨¿ì
buffer[i++]=" World!";
var text=buffer.join("");
ÔÚÔçÆÚµÄä¯ÀÀÆ÷ÖУ¬Ã»Óд´½¨ºÍÏú»ÙÖмä×Ö·û´®£¬ÔÚ´óÁ¿×Ö·û´®Á¬½ÓÇé¿öÏ£¬Õâ¼¼ÊõÒѱ»Ö¤Ã÷Ô¶¿ìÓÚʹÓüӷ¨·½Ê½¡£
3¡¢Èç½ñä¯ÀÀÆ÷¶Ô×Ö·û´®µÄÓÅ»¯ÒѾ¸Ä±äÁË×Ö·û´®ÏàÁ¬µÄ¾ÖÃæ¡£
Safari¡¢Opera¡¢Chrome¡¢FirefoxºÍIE8¶¼ÔÚʹÓüӷ¨ÔËËã·ûÉϱíÏÖ³öÁ˸üºÃµÄÐÔÄÜ¡£µ«ÊÇ£¬IE8֮ǰµÄ°æ±¾Ã»ÓÐÓÅ»¯£¬Òò´ËÊý×é·½·¨ÒÀÈ»ÓÐЧ¡£
Õâ²¢²»Òâζ×Å×Ö·û´®ÏàÁ¬Ê±ÎÒÃÇÒª½øÐÐä¯ÀÀÆ÷¼ì²â¡£ÔÚ¾ö¶¨ÈçºÎÁ¬½ÓʱҪ¿¼ÂǵÄÊÇ×Ö·û´®µÄ´óСºÍÊýÁ¿¡£
1£©µ±×Ö·û´®Ïà¶Ô½ÏС£¨<20×Ö·û£©ÇÒÁ¬½ÓÊýÁ¿Ò²½ÏСʱ(<1000¸ö£©£¬ËùÓеÄä¯ÀÀÆ÷ʹÓüӷ¨ÔËËã·û¶¼ÄÜÔÚ²»µ½1ºÀÃëÄÚÇáËÉÍê³ÉÁ¬½Ó¡£
2£©Ôö¼Ó×Ö·û´®ÊýÁ¿»ò´óСʱ£¬IE7ÖÐÐÔÄÜ»áÃ÷ÏÔϽµ¡£
3£©×Ö·û´®´óСÔö¼Óʱ£¬FirefoxÖмӷ¨ÔËËã·ûºÍÊý×é³É¼¼ÇÉÐÔÄܲîÒì»á±äС¡£
4£©×Ö·û´®ÊýÁ¿Ôö¼Óʱ£¬SafariÖмӷ¨ÔËËã·ûºÍÊý×é³É¼¼ÇÉÐÔÄܲîÒì»á±äС¡£
5£©¸Ä±ä×Ö·û´®ÊýÁ¿»ò´óСʱ£¬ChromeºÍOperaÖмӷ¨ÔËËã·ûÒ»Ö±±£³ÖÁìÏÈÓÅÊÆ¡£
ËùÒÔ£¬ÓÉÓÚÔÚ¸÷ä¯ÀÀÆ÷ÏÂÐÔÄܲ»Ò»Ö£¬Ñ¡Óü¼ÊõÈ¡¾öÓÚʵ¼ÊÇé¿öºÍÃæ¶ÔµÄä¯ÀÀÆ÷¡£
´ó¶àÊýÇé¿öÏ£¬¼Ó·¨ÔËËã·ûÊÇÊ×Ñ¡£»Èç¹ûÓû§Ö÷ҪʹÓÃIE6»ò7£¬²¢ÇÒ×Ö·û´®´óС½Ï´ó»òÊýÁ¿½Ï¶àʱ£¬ÄÇôÊý×é¼¼Êõ¾ÍºÜÖµµÃ¡£
[removed] if ($ != jQuery) { $ = jQuery.noConflict(); } [removed]
ÍƼöÐÅÏ¢
- jqueryʵÏÖÍøվͼƬÀÁ¼ÓÔØ´úÂë
- jQuery Tooltips²å¼þ
- jQueryµÄ.bind()¡¢.live()ºÍ.delegate(....
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- Ä㲻ϲ»¶»ðºü£¬µ«ÓÖϲ»¶firebug£¬ÄǾ͸úÎÒÒ»ÆðÀ´ÔÚIEÉÏ....
- ¸ù¾ÝÏÔʾÆ÷·Ö±æÂʵ÷ÕûÒ³ÃæÏÔʾµÄJavascript½Å±¾
- jQuery дµÄ·ÂÐÂÀË΢²© ÏòϹö¶¯Ð§¹û¡¾×ªÔØ¡¿
- ͨÓõÄJqueryÑ¡ÔñÆ÷
- jQuery ½áºÏ Json Ìá½»Êý¾Ýµ½Webservice£¬....
- ×ÔÖÆjQueryÖÇÄÜÌáʾ²å¼þһö
ÈÈÃÅÐÅÏ¢
- 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ÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- js»ñÈ¡srcÖд«µÝµÄ²ÎÊý
- jqueryʵÏÖÍøվͼƬÀÁ¼ÓÔØ´úÂë
- ÈÃä¯ÀÀÆ÷ÆÁ±ÎµôJavaScriptµÄ³ö´íÌáʾ
- github²»ÄܼÓÔØcss¡¢js½â¾ö°ì·¨
- ÎÒÖªµÀµÄJavaScript -- Éè¼Æģʽ(ÇŽÓ)Ó¦ÓÃÖ® ¨C ....
- 15¸öÖµµÃ¿ª·¢ÈËÔ±¹Ø×¢µÄjQuery¿ª·¢¼¼ÇɺÍÐĵÃ
- dz̸JavascriptÃæÏò¶ÔÏó±à³Ì
- JS¼òµ¥¶¯»·â×°
- JavaScript³õѧÕßӦעÒâµÄÆ߸öϸ½Ú
- jQuery Tooltips²å¼þ
ÆÀÂÛ