【发布时间】:2021-03-12 05:41:21
【问题描述】:
我正在尝试使用“.write”将信息发送回网页给用户,然后当我使用“.send”方法发送“.write”中存在的响应时,它不会呈现 html。
快递代码:-
res.write("<h2>The weather seems like" + weatherDescription + "</h2>");
res.write("<h1>The temprature in banglore is " + temprature + " degree celcius.</h1><br>");
res.send();
【问题讨论】:
标签: node.js api express backend