首页 / 百科 / 内容详情 app.listen(port,[hostname],[backlog],[callback])绑定程序监听端口到指定的主机和端口号。这个方法和Node中的http.Server.listen()是一样的。 2022-04-26 6次阅读 listen 监听 绑定 app.listen(port,[hostname],[backlog],[callback])绑定程序监听端口到指定的主机和端口号。这个方法和Node中的http.Server.listen()是一样的。 A.正确B.错误正确答案:正确 app对象一般用来表示Express程序。通过调用Express模块导出的顶层的express()方法来创建它:varexpress=require('express');varapp=express();app.get(& express.static是Express中唯一的内建中间件。它以server-static模块为基础开发,负责托管Express应用内的静态资源。 猜你喜欢 Learning to listen() not just() doesn’t come easily to him. — Youd better not push yourself too hard. You can ask the team and listen.— __________ In what ways do we listen to music? Uighur folk music is() to listen to. Listen to the file and you believe the person is ()