✅ 操作成功!

ReferenceError: Cannot access ‘handlerouter‘ before initialization

发布时间:2023-06-17 作者:admin 来源:文学

ReferenceError: Cannot access ‘handlerouter‘ before initialization

ReferenceError: Cannot access ‘handlerouter‘ before initialization

Cannot access ‘handlerouter‘ before initialization,大概意思就是handlerouter没有初始化之前,无法执行server=http.createServer(handlerouter)

var http=require('http') server=http.createServer(handlerouter) const handlerouter=(req,res)=>{ console.log(req.method) console.log(req.url) } server.listen(8000)

可提供远程搭建运行服务

不会调试运行的同学,你只需打开远程,会帮你搭建调试好一切(JDK、Idea/Eclipse、MySQL、Tomcat、Maven………)

点击获取项目源码

👁️ 阅读量:0