Page 84 - Nodejs 교과서 개정2판
P. 84

֢٘ ղ੢ ё୓ ঌইࠁӝ







         ֢٘ীࢲח ӝࠄ੸ੋ ղ੢ ё୓৬ ղ੢ ݽٕ    ੺ ଵઑ ਸ ઁҕ೤פ׮  ٮ۽ ࢸ஖ೞ૑ ঋইب ߄۽ ࢎਊೡ ࣻ ੓
         ਵݴ  ࠳ۄ਋੷੄ window ё୓৬ ࠺तೞ׮Ҋ ࠁݶ ؾפ׮


         ੉ ੺ীࢲח ֢٘ ೐۽Ӓې߁ਸ ೡ ٸ ݆੉ ॳ੉ח ղ੢ ё୓ܳ ঌইࠁѷणפ׮

          
          
               HMPCBM
         ݢ੷ global ё୓ੑפ׮  ࠳ۄ਋੷੄ window৬ э਷ ੹৉ ё୓ੑפ׮  ੹৉ ё୓੉޲۽ ݽٚ ౵ੌীࢲ ੽Ӕೡ

         ࣻ ੓णפ׮  ژೠ  window.open ݫࢲ٘ܳ Ӓր openਵ۽ ഐ୹ೡ ࣻ ੓ח Ѫ୊ۢ globalب ࢤۚೡ ࣻ ੓णפ׮

         ੉੹ ੺ীࢲ ࢎਊ೮؍ require ೣࣻب global.requireীࢲ global੉ ࢤۚػ Ѫੑפ׮  ֢٘ ௑ࣛী ۽Ӓܳ ӝ
         ۾ೞח console ё୓ب ਗېח global.consoleੑפ׮


         global ё୓ ղࠗীח ݒ਋ ݆਷ ࣘࢿ੉ ٜয ੓णפ׮  ੉ ੺ীࢲ ߓ਎ ղਊٜ੉ global ё୓ উী ੓णפ׮
         ղࠗܳ ࠁ۰ݶ 3&1-ਸ ੉ਊ೧ঠ ೤פ׮



           /PUF ™ ֢٘੄ XJOEPX  EPDVNFOU ё୓

           ֢٘ী %0.੉ա #0.੉ হਵ޲۽ window৬ document ё୓ח ֢٘ীࢲ ࢎਊೡ ࣻ হणפ׮  ֢٘ীࢲ window ژח docum
           entܳ ࢎਊೞݶ ী۞о ߊࢤ೤פ׮




          콘솔

           $	node
           >	global
           {
           		global:	[Circular	*1],
           		clearInterval:	[Function:	clearInterval],
           		clearTimeout:	[Function:	clearTimeout],
           		...
           }
           >	global.console
           {
           		log:	[Function:	bound	consoleCall],
           		warn:	[Function:	bound	consoleCall],
           		dir:	[Function:	bound	consoleCall],
           		...
           }
   79   80   81   82   83   84   85   86   87   88   89