admin管理员组

文章数量:1794759

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………)

点击获取项目源码

本文标签: AccessReferenceErrorinitializationhandlerouter