首页 / 百科 / 内容详情 express.static是Express中唯一的内建中间件。它以server-static模块为基础开发,负责托管Express应用内的静态资源。 2022-04-26 7次阅读 express 中间件 serverstatic express.static是Express中唯一的内建中间件。它以server-static模块为基础开发,负责托管Express应用内的静态资源。 A.正确B.错误正确答案:正确 app.listen(port,[hostname],[backlog],[callback])绑定程序监听端口到指定的主机和端口号。这个方法和Node中的http.Server.listen()是一样的。 express()用来创建一个Express的程序。express()方法是express模块导出的顶层方法。varexpress=require('express'); 猜你喜欢 What are the common ways facial changes using to express sudden changes in a character's feelings? Men and women express gender communication differences in(). Many people express about the government’s new rules. In order to express our meaning, we can give stress to any of the words in a sentence.()。 Woman: I’m sorry, you missed the express.Man: Oh, no! Well, can I still make the()?