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

ਤ৬ э੉ زदী ৈ۞ ѐ੄ ޷ٜਝযܳ ੢଱ೡ ࣻب ੓ਵݴ  ׮਺ ޷ٜਝয۽ ֈযо۰ݶ next ೣࣻܳ ഐ୹೧ঠ

         ೤פ׮  ਤ ޷ٜਝযٜ਷ ղࠗ੸ਵ۽ nextܳ ഐ୹ೞҊ ੓ਵ޲۽ ো׳ই ॶ ࣻ ੓णפ׮  nextܳ ഐ୹ೞ૑ ঋח
         ޷ٜਝযח res.sendա res.sendFile ١੄ ݫࢲ٘۽ ਽׹ਸ ࠁղঠ ೤פ׮  express.staticҗ э਷ ޷ٜਝয

         ח ੿੸ ౵ੌਸ ઁҕೡ ٸ next ؀न res.sendFile ݫࢲ٘۽ ਽׹ਸ ࠁշפ׮  ٮۄࢲ ੿੸ ౵ੌਸ ઁҕೞח ҃

         ਋ express.json  express.urlencoded  cookieParser ޷ٜਝযח प೯غ૑ ঋणפ׮  ޷ٜਝয ੢଱ ࣽࢲী
         ٮۄ যڃ ޷ٜਝযח प೯غ૑ ঋਸ ࣻب ੓׮ח Ѫਸ ӝর೧نद׮

         ݅ড nextب ഐ୹ೞ૑ ঋҊ ਽׹ب ࠁղ૑ ঋਵݶ ௿ۄ੉঱౟ח ਽׹ਸ ߉૑ ޅ೧ ೞ৏হ੉ ӝ׮ܻѱ ؾפ׮






































         § Ӓܿ     OFYU੄ ز੘


         ૑Әө૑ח nextী ইޖ۠ ੋࣻܳ ֍૑ ঋও૑݅ next ೣࣻী ੋࣻܳ ֍ਸ ࣻب ੓णפ׮  ױ  ੋࣻܳ ֍ח׮ݶ

         ౠࣻೠ ز੘ਸ ೤פ׮  routeۄח ޙ੗ৌਸ ֍ਵݶ ׮਺ ۄ਋ఠ੄ ޷ٜਝয۽ ߄۽ ੉زೞҊ  Ӓ ৻੄ ੋࣻܳ ֍
         ח׮ݶ ߄۽ ী۞ ୊ܻ ޷ٜਝয۽ ੉ز೤פ׮  ੉ٸ੄ ੋࣻח ী۞ ୊ܻ ޷ٜਝয੄ err ݒѐ߸ࣻо ؾפ׮  ۄ

         ਋ఠীࢲ ী۞о ߊࢤೡ ٸ ী۞ܳ next(err)ਸ ా೧ ী۞ ୊ܻ ޷ٜਝয۽ ֈӤפ׮









         § Ӓܿ     ী۞ ୊ܻ ޷ٜਝয۽ ী۞ ࠁղӝ



         ޷ٜਝয рী ؘ੉ఠܳ ੹׳ೞח ߑߨب ੓णפ׮  ࣁ࣌ਸ ࢎਊೠ׮ݶ req.session ё୓ী ؘ੉ఠܳ ֍যب غ

         ૑݅  ࣁ࣌੉ ਬ૑غח زউী ؘ੉ఠب ҅ࣘ ਬ૑ػ׮ח ױ੼੉ ੓णפ׮  ݅ড ਃ୒੉ ՘զ ٸө૑݅ ؘ੉ఠܳ
   219   220   221   222   223   224   225   226   227   228   229