How to change front-end html using node.js
问题 So I want to make changes on my front-end html file from my node.js backend. How would I do so? (Any suggestions with examples would be greatly appreciated) Here's where I would like to change it: router.post('/change', function(req, res){ console.log(req.body.list); //modify html DOM here!! //preferably using jQuery }) 回答1: You can't modify from the node side in the way that I think your're trying to do. You can send back a response to the client side, and on that response, you can trigger a