尊龙凯时人生就是博

jsÖÐwindow¹¤¾ßÓÐÄÄЩ

javascript ÖÐµÄ window ¹¤¾ßÊÇËùÓÐÈ«¾Ö¹¤¾ßµÄ¸¸¹¤¾ß £¬Ìṩ¶Ôä¯ÀÀÆ÷¡¢Ò³ÃæºÍÎĵµµÄ»á¼û¡£ Ëü¿ÉÓÃÓÚ£º»á¼ûä¯ÀÀÆ÷ÐÅÏ¢£¨°æ±¾¡¢Óû§ÊðÀí×Ö·û´®µÈ£©¡£²Ù×÷Ò³ÃæºÍÎĵµ£¨¼ÓÔØ¡¢Ð¶ÔØÎĵµ £¬»ñÈ¡ÔªËØ £¬ÐÞ¸ÄÎÊÌ⣩¡£¿ØÖÆ´°¿ÚÐÐΪ£¨·­¿ª¡¢¹Ø±Õ¡¢µ÷½â¾Þϸ¡¢Òƶ¯´°¿Ú£©¡£ÊÂÎñ´¦Àí£¨¼àÌýºÍ´¦ÀíÊÂÎñ£©¡£×¼Ê±Æ÷£¨ÔÚһ׼ʱ¼ä¾àÀëºóÖ´ÐдúÂ룩¡£´æ´¢Êý¾Ý£¨Í¨¹ý localstorage ºÍ sessionstorage ÊôÐÔ£©¡£

JavaScript ÖÐµÄ Window ¹¤¾ß

ÔÚ JavaScript ÖÐ £¬window ¹¤¾ßÊÇÒ»¸öÈ«¾Ö¹¤¾ß £¬Ëü´ú±íä¯ÀÀÆ÷´°¿Ú»ò°üÀ¨ÎĵµµÄ¿ò¼Ü¡£ËüÊÇËùÓÐÆäËûÈ«¾Ö¹¤¾ßµÄ¸¸¹¤¾ß £¬ÌṩÁ˶Ôä¯ÀÀÆ÷¡¢Ò³ÃæºÍÎĵµµÄ»á¼û¡£

Window ¹¤¾ßµÄ×÷ÓÃ

Window ¹¤¾ßÖ÷ÒªÓÃÓÚÒÔÏÂÄ¿µÄ£º

»á¼ûä¯ÀÀÆ÷ÐÅÏ¢£º»ñÈ¡ä¯ÀÀÆ÷°æ±¾¡¢Óû§ÊðÀí×Ö·û´®¡¢ÆÁÄ»Çø·ÖÂʵÈ¡£

²Ù×÷Ò³ÃæºÍÎĵµ£º¼ÓÔغÍжÔØÎĵµ¡¢»ñÈ¡ÎĵµÔªËØ¡¢ÐÞ¸ÄÎÊÌâºÍ URL¡£

¿ØÖÆ´°¿ÚÐÐΪ£º·­¿ª¡¢¹Ø±Õ¡¢µ÷½â¾ÞϸºÍÒƶ¯´°¿Ú¡£

ÊÂÎñ´¦Àí£º¼àÌýºÍ´¦ÀíÒ³ÃæºÍ´°¿ÚÉϵÄÊÂÎñ £¬ÀýÈç¼ÓÔØ¡¢Ð¶ÔØ¡¢µ¥»÷ºÍת¶¯¡£

׼ʱÆ÷£ºÊ¹Óà setTimeout() ºÍ setInterval() ÒªÁìÔÚһ׼ʱ¼ä¾àÀëºóÖ´ÐдúÂë¡£

´æ´¢Êý¾Ý£ºÍ¨¹ý localStorage ºÍ sessionStorage ÊôÐÔ´æ´¢Êý¾Ý¡£

Window ¹¤¾ßµÄÊôÐÔ

Window ¹¤¾ßÌṩÁË´ó×ÚµÄÊôÐÔ £¬°üÀ¨£º

document£ºÖ¸ÏòÄ¿½ñÎĵµµÄ Document ¹¤¾ß¡£

location£ºÖ¸ÏòÄ¿½ñ URL µÄ Location ¹¤¾ß¡£

navigator£ºÌṩÓйØä¯ÀÀÆ÷ºÍÓû§ÊðÀíµÄÐÅÏ¢¡£

screen£ºÌṩÓйØÆÁÄ»³ß´çºÍÇø·ÖÂʵÄÐÅÏ¢¡£

history£ºÌṩÓйØä¯ÀÀÀúÊ·¼Í¼µÄÐÅÏ¢¡£

localStorage£ºÓÃÓÚÓÀÊÀ´æ´¢Êý¾ÝµÄ localStorage ¹¤¾ß¡£

sessionStorage£ºÓÃÓÚÔڻỰʱ´ú´æ´¢Êý¾ÝµÄ sessionStorage ¹¤¾ß¡£

Window ¹¤¾ßµÄÒªÁì

Window ¹¤¾ß»¹ÌṩÁËһЩҪÁì £¬°üÀ¨£º

alert()£ºÏÔʾ¾¯±¨¶Ô»°¿ò¡£

confirm()£ºÏÔʾȷÈ϶Ի°¿ò¡£

prompt()£ºÏÔʾÌáÐѶԻ°¿ò¡£

open()£º·­¿ªÒ»¸öеÄä¯ÀÀÆ÷´°¿Ú»òÑ¡Ï¡£

close()£º¹Ø±ÕÄ¿½ñ´°¿Ú»òÑ¡Ï¡£

setTimeout()£ºÔÚָ׼ʱ¼äºóÖ´ÐдúÂë¡£

setInterval()£ºÃ¿¸ôָ׼ʱ¼äÖ´ÐдúÂë¡£

ÒÔÉϾÍÊÇjsÖÐwindow¹¤¾ßÓÐÄÄЩµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ