每当我使用 res.write() 函数时,页面总是在加载。此外,我没有从 API 渲染图像。enter image description here
const express = require('express');
const app = express();
app.listen(3000, () => console.log("server has started"));
app.get("/", function (req, response) {
response.write(" <h1>The server has started</h1>");
})