おすすめツイート
D-3 another easy method for loop array.forEach and the anonymous function inside fun we usually use the singular of the array posts.forEach(function(post){ console.log(post); }) #js #100DaysOfCode
D-2 passing specific array data from js to ejs 1.local array var in js var b= []; to add more [] use .push() use for loop inside ejs <% for loop >% and pass data in console.log *posts[i].title #js #100DaysOfCode
D-2 how to use res.render vs res.redirect redirect forced navigation to a different URL and should never be part of any standard rendering process #js #100DaysOfCode
D-2 input for one line textarea used for multi line input in html we used label to named the input section label + textarea inside div become perfect UI #javascript #100DaysOfCode
D-2 pass date html to server <form action="/compose" method="post"><input type="text" name="textCompose"><button type="submit" name="button">Publish</button></form> server side app.post("/compose",function(req,res){c.log(req.body.textCompose); })#100DaysOfCode
how to use modules with js 1- create new file 2- declarer that file in the main app.js const date = require(__dirname+"/date.js"); 3- now you can use it const day = date.getDate(); #100dayscoding #100daysofcodechallenge
United States トレンド
- 1. ESPN Bet 1,451 posts
- 2. Good Thursday 31.5K posts
- 3. #MichaelMovie 8,522 posts
- 4. Happy Friday Eve N/A
- 5. Gremlins 3 1,172 posts
- 6. #thursdayvibes 2,503 posts
- 7. Joe Dante N/A
- 8. Penn 8,620 posts
- 9. #ThursdayThoughts 1,652 posts
- 10. #thursdaymotivation 1,584 posts
- 11. Chris Columbus 1,091 posts
- 12. Barstool 1,388 posts
- 13. #LosdeSiemprePorelNO N/A
- 14. Kneeland N/A
- 15. Erik Spoelstra 1,651 posts
- 16. VOTAR NO 27.2K posts
- 17. LINGORM LANNA CULTURE 480K posts
- 18. Vatican 11K posts
- 19. Happy Anniversary 42.7K posts
- 20. Stranger Things Day 8,445 posts
Something went wrong.
Something went wrong.