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

origin:	'http://www.gilbut.co.kr',
           		protocol:	'http:',
           		username:	'',
           		password:	'',
           		host:	'www.gilbut.co.kr',
           		hostname:	'www.gilbut.co.kr',
           		port:	'',
           		pathname:	'/book/bookList.aspx',
           		search:	'?sercate1=001001000',
           		searchParams:	URLSearchParams	{	'sercate1'	=>	'001001000'	},
           		hash:	'#anchor'
           }
           url.format():	http://www.gilbut.co.kr/book/bookList.aspx?sercate1=001001000#anchor
           ------------------------------
           url.parse():	Url	{
           		protocol:	'http:',
           		slashes:	true,
           		auth:	null,
           		host:	'www.gilbut.co.kr',
           		port:	null,
           		hostname:	'www.gilbut.co.kr',
           		hash:	'#anchor',
           		search:	'?sercate1=001001000',
           		query:	'sercate1=001001000',
           		pathname:	'/book/bookList.aspx',
           		path:	'/book/bookList.aspx?sercate1=001001000',
           		href:	'http://www.gilbut.co.kr/book/bookList.aspx?sercate1=001001000#anchor'
           }
           url.format():	http://www.gilbut.co.kr/book/bookList.aspx?sercate1=001001000#anchor




         ӝઓ ֢٘ ߑधীࢲח ف ݫࢲ٘ܳ ઱۽ ࢎਊ೤פ׮

            • url.parse(주소)  ઱ࣗܳ ࠙೧೤פ׮  8)"58( ߑधҗ ࠺Үೞݶ usernameҗ password ؀न auth ࣘࢿ

             ੉ ੓Ҋ  searchParams ؀न queryо ੓णפ׮
            • url.format(객체)  8)"58( ߑध VSMҗ ӝઓ ֢٘੄ VSMਸ ݽف ࢎਊೡ ࣻ ੓णפ׮  ࠙೧غ঻؍ url ё

             ୓ܳ ׮द ਗې ࢚క۽ ઑ݀೤פ׮
          
         8)"58(৬ ֢٘੄ VSM਷ ஂೱী ٮۄ ࢎਊೞݶ غ૑݅  ֢٘੄ VSM ഋधਸ ԙ ࢎਊ೧ঠ ೞח ҃਋о ੓णפ׮

         host ࠗ࠙ হ੉ pathname ࠗ࠙݅ য়ח ઱ࣗੋ ҃਋ ৘द   CPPL CPPL-JTU BQTY ীח 8)"58( ߑध੉ ୊ܻ
         ೡ ࣻ হणפ׮   ੢ীࢲ ࢲߡܳ ٜ݅ ٸח host ࠗ࠙ হ੉ pathname݅ য়ח ઱ࣗܳ ࠁѱ ؼ Ѫੑפ׮


         8)"58( ߑध਷ search ࠗ࠙ਸ searchParamsۄח ౠࣻೠ ё୓۽ ߈ജೞ޲۽ ਬਊ೤פ׮  search ࠗ࠙਷ ࠁ
   101   102   103   104   105   106   107   108   109   110   111