登录后复制 const express=require('express'); const app=express(); app.listen(3000,()=>{ console.log('server is running at port 3000'); }) app.get('/',(req,res)=>{ res.json('hello world'); }) 1.2.3.4.5.6.7.8. 原创作者: u_16969274 转载于: https://blog.51cto.com/u_16969274/11814202