We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Found 404 NotFoundError: Not Found Why it gives error>?
The text was updated successfully, but these errors were encountered:
报404错误是因为你路由并没有定义根路由下做什么处理,你可以在app.js文件下做相应处理 app.get('/', (req, res, next) => { console.log('欢迎来到德莱联盟') res.writeHead(200,{'Content-Type':'html'}); res.write('<!DOCTYPE html>'+ '<html>'+ '<head>'+ '<meta charset="utf-8" />'+ '<title>LOL</title>'+ '</head>'+ '<body>欢迎来到德莱联盟</body>'+ '</html>'); res.end(); })
app.get('/', (req, res, next) => { console.log('欢迎来到德莱联盟') res.writeHead(200,{'Content-Type':'html'}); res.write('<!DOCTYPE html>'+ '<html>'+ '<head>'+ '<meta charset="utf-8" />'+ '<title>LOL</title>'+ '</head>'+ '<body>欢迎来到德莱联盟</body>'+ '</html>'); res.end(); })
Sorry, something went wrong.
No branches or pull requests
Not Found
404
NotFoundError: Not Found
Why it gives error>?
The text was updated successfully, but these errors were encountered: