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

פ׮

          
          
               FODPEF63*$PNQPOFOU  EFDPEF63*$PNQPOFOU

         "+"9 ਃ୒ਸ ࠁյ ٸ  rIUUQ   MPDBMIPTU      TFBSDI ֢٘s୊ۢ ઱ࣗী ೠӖ੉ ٜযоח ҃਋о ੓णפ׮
         ࢲߡ ઙܨী ٮۄ ׮ܰ૑݅ ࢲߡо ೠӖ ઱ࣗܳ ੉೧ೞ૑ ޅೞח ҃਋о ੓חؘ  ੉ۡ ٸח window ё୓੄ ݫࢲ

         ٘ੋ encodeURIComponent ݫࢲ٘ܳ ࢎਊ೤פ׮  ֢٘ীࢲب ࢎਊೡ ࣻ ੓णפ׮

         ೠӖ ઱ࣗ ࠗ࠙݅ encodeURIComponent ݫࢲ٘۽ хषפ׮




           (async	()	=>	{
           		try	{
           				const	result	=	await	axios.get(`https://www.zerocho.com/api/search/${encodeURIComponent('노드')}`);
           				console.log(result);
           				console.log(result.data);	//	{}
           		}	catch	(error)	{
           				console.error(error);
           		}
           })();




         ֢٘ۄח ೠӖ ઱ࣗо %EB%85%B8%EB%93%9Cۄח ޙ੗ৌ۽ ߸ജغ঻णפ׮


         ߉ח ଃীࢲח decodeURIComponentܳ ࢎਊೞݶ ؾפ׮  ৉द ࠳ۄ਋੷ࡺ݅ ইפۄ ֢٘ীࢲب ࢎਊೡ ࣻ ੓ण
         פ׮




           decodeURIComponent('%EB%85%B8%EB%93%9C');	//	노드




         ೠӖ੉ ׮द ਗې ࢚క۽ ࠂҳغ঻णפ׮  ੉റী աয়ח ৘ઁীࢲ encodeURIComponent৬ decodeURIComponen

         tܳ ॳח ҃਋ܳ ࠁѱ ؼ బؘ  ೠӖਸ ୊ܻೞӝ ਤೠ Ѫ੉ۄҊ ࢤпೞݶ ؾפ׮

          
          
               ؘ੉ఠ ࣘࢿҗ EBUBTFU

         ֢٘ܳ ਢ ࢲߡ۽ ࢎਊೞח ҃਋  ௿ۄ੉঱౟ ೐۠౟ূ٘ ৬ ࠼ߣೞѱ ؘ੉ఠܳ ઱Ҋ߉ѱ ؾפ׮  ੉ٸ ࢲߡীࢲ
         ࠁղળ ؘ੉ఠܳ ೐۠౟ূ٘ য٣ী ֍যঠ ೡ૑ Ҋ޹ೞѱ ؾפ׮

         ೐۠౟ূ٘ী ؘ੉ఠܳ ղ۰ࠁյ ٸ ୐ ߣ૩۽ Ҋ۰೧ঠ ೡ ੼਷ ࠁউੑפ׮  ௿ۄ੉঱౟ܳ ޺૑ ݈ۄח ݈੉ ੓

         ਸ ੿ب۽ ೐۠౟ূ٘ী ޹хೠ ؘ੉ఠܳ ղ۰ࠁղח Ѫ਷ पࣻੑפ׮  ࠺޻ߣഐ э਷ Ѥ ੺؀ ղ۰ࠁղ૑ ݃ࣁ
         ਃ
   68   69   70   71   72   73   74   75   76   77   78