һЩС֪ʶ×ܽᣨËäÈ»¿ÉÄÜûÓã©
2019-01-15 07:02:06À´Ô´£º²©¿ÍÔ° ÔĶÁ ()
1¡¢typeof¿ÉÒÔÓÃÓÚ䶨ÒåµÄ±äÁ¿
1 var a; 2 alert(typeof a); 3 alert(typeof b);
ÉÏÃæµÄ´úÂëÊä³ö½á¹ûÏàͬ£¬typeof²»Çø·Ö䶨Òå±äÁ¿ºÍδ³õʼ»¯±äÁ¿£¬ËüÃǵķµ»ØÖµ¶¼Îªundefined¡£
2¡¢undefinedʵ¼ÊÉÏÊÇ´ÓnullÅÉÉú³öÀ´µÄ£¬ÔÚECMA±ê×¼ÖÐÈÏΪ¶þÕßÏàµÈ£¬¼´undefined==nul --------->true
3¡¢¸¡µãÊýÔò»á½øÐмÆËã֮ǰÊÇÒÔ×Ö·û´®ÐÎʽ´æ´¢µÄ
4¡¢NaN×ÔÉíÊDz»ÏàµÈµÄ£¬¼´NaN==NaN -------->false
5¡¢»ñÈ¡·¶Î§ÔÚmin~maxÖ®¼äµÄËæ»úÊý
1 Math.floor(Math.random() * (max - min + 1) + min);
6¡¢Êý×éÖÐÈ¡×î´óÖµµÄ·½·¨
1 Math.max.apply(Math,arr);
µ«ÊDz¢Ã»ÓÐÈ¡Êý×é×îСֵµÄ·½·¨
7¡¢toString()·½·¨¿ÉÒÔ½«ÆäËüÀàÐ͵ÄֵתΪStringÐÍ£¬Õâ¸ö·½·¨À´Ô´ÓÚObject£¬ËùÒÔString±¾ÉíÒ²ÓÐÕâ¸ö·½·¨£¨ËäÈ»×Ö·û´®×ª×Ö·û´®ºÃÏñºÜ´À¡£¡£¡££©
8¡¢NumberµÄtoString()·½·¨¿ÉÒÔ´«Èë»ùÖµ£¬ÒÔ½øÐнøÖÆת»»
1 var num = 10; 2 alert(num.toString(2)); //Êä³ö "1010" 3 alert(num.toString(8)); //Êä³ö "12" 4 alert(num.toString(16)); //Êä³ö "A"
ÔÎÄÁ´½Ó:https://www.cnblogs.com/voidchar/p/10265106.html
ÈçÓÐÒÉÎÊÇëÓëÔ×÷ÕßÁªÏµ
±êÇ©£º
°æȨÉêÃ÷£º±¾Õ¾ÎÄÕ²¿·Ö×ÔÍøÂ磬ÈçÓÐÇÖȨ£¬ÇëÁªÏµ£ºwest999com@outlook.com
Ìرð×¢Ò⣺±¾Õ¾ËùÓÐתÔØÎÄÕÂÑÔÂÛ²»´ú±í±¾Õ¾¹Ûµã£¬±¾Õ¾ËùÌṩµÄÉãÓ°ÕÕƬ£¬²å»£¬Éè¼Æ×÷Æ·£¬ÈçÐèʹÓã¬ÇëÓëÔ×÷ÕßÁªÏµ£¬°æȨ¹éÔ×÷ÕßËùÓÐ
ÉÏһƪ£ºjsÖ®·µ»ØÍøÒ³¶¥²¿
ÏÂһƪ£ºjsÈçºÎÉú³ÉidËæ»úÊý
- jquery ²Ù×÷iframeµÄ¼¸ÖÖ·½·¨×ܽá 2020-02-22
- ¸ßЧµÄjQuery´úÂë±àд¼¼ÇÉ×ܽá 2020-02-15
- ×ܽájs³£ÓÃÊý×éµÄ²Ù×÷·½·¨ 2019-12-13
- ×ܽájavascript½øÐÐÊý×é×·¼ÓµÄ´úÂë 2019-12-04
- ×ܽájsÏÞÖÆÎı¾¿òµÄÊäÈëÊý×Ö·½·¨ 2019-12-02
IDC×ÊѶ£º Ö÷»ú×ÊѶ ×¢²á×ÊѶ ÍйÜ×ÊѶ vps×ÊѶ ÍøÕ¾½¨Éè
ÍøÕ¾ÔËÓª£º ½¨Õ¾¾Ñé ²ß»®Ó¯Àû ËÑË÷ÓÅ»¯ ÍøÕ¾Íƹã Ãâ·Ñ×ÊÔ´
ÍøÕ¾ÁªÃË£º ÁªÃËÐÂÎÅ ÁªÃ˽éÉÜ ÁªÃ˵ãÆÀ Íø׬¼¼ÇÉ
ÐÐÒµ×ÊѶ£º ËÑË÷ÒýÇæ ÍøÂçÓÎÏ· µç×ÓÉÌÎñ ¹ã¸æ´«Ã½
ÍøÂç±à³Ì£º Asp.Net±à³Ì Asp±à³Ì Php±à³Ì Xml±à³Ì Access Mssql Mysql ÆäËü
·þÎñÆ÷¼¼Êõ£º Web·þÎñÆ÷ Ftp·þÎñÆ÷ Mail·þÎñÆ÷ Dns·þÎñÆ÷ °²È«·À»¤
Èí¼þ¼¼ÇÉ£º ÆäËüÈí¼þ Word Excel Powerpoint Ghost Vista QQ¿Õ¼ä QQ FlashGet ѸÀ×
ÍøÒ³ÖÆ×÷£º FrontPages Dreamweaver Javascript css photoshop fireworks Flash
³ÌÐòÉè¼Æ£º Java¼¼Êõ C/C++ VB delphi
- Photoshop»æÖÆÁ¢Ìå·ç¸ñµÄ΢Ц±íÇé
- PSÎÄ×ÖÌØЧ½Ì³Ì£ºÖÆ×÷¹«Â·ÉϸöÐÔµÄÍ¿Ñ»
- PhotoshopÉè¼Æ¾í±ßЧ¹ûµÄ±äÐνð¸ÕµçÓ°
- PSÉ«²ÊÐÞ¸´½Ì³Ì£ºÀûÓÃÉ«½×¹¤¾ß¿ìËÙ¸øºì
- PS°ë͸Ã÷ÎïÌå¿Ùͼ£ºÀûÓÃͨµÀÑ¡Çø¹¤¾ß¿Ù
- PSº£±¨Éè¼Æ¼¼Çɽ̳̣ºÑ§Ï°ÖÆ×÷¸öÐԵč
- PSͼƬÌØЧÖÆ×÷½Ì³Ì£ºÑ§Ï°¸øÌúËþͼƬÖÆ
- ѧϰÓÃphotoshop°Ñ»ë×ǵĺ£Ë®ÕÕƬºóÆÚ
- PS¹Å·çÕÕƬ½Ì³Ì£º¸ø¹Å·çÃÀÅ®´òÔì³öÅ®ÏÀ
- PS¸öÐÔÈËÎﺣ±¨ÖÆ×÷£ºÉè¼Æ´´ÒâʱÉеIJ£
- ÓÃjavascriptʵÏÖBase64±àÂë
- ¡¾ÔËÐдíÎó¡¿Uncaught DOMException: B
- socket.io ³öÏÖµÄWebSocket is closed
- charles×¥°ü³öÏÖÂÒÂë SSL Proxying no
- ES6 require ( ·¾¶±äÁ¿ ) Ïà¹ØʹÓ÷½
- echartsÔÚµØͼÉÏ»æÖÆÉ¢µãͼ£¨ÈÎÒâµã£©
- NuxtÏîÄ¿´î½¨µ½·¢²¼²¿Êð
- Ê¡ÊÐÇøÈý¼¶Áª¶¯ÏÂÀÁÐ±í£¬»ñÈ¡µØÇø±àºÅ
- ×îÈ«Ç°¶Ë×ÊÔ´»ã×Ü
- layui table±í¸ñ ±íÍ·ÓëÄÚÈÝÁдíλÎÊ