http.creatServer is not a function,請問是哪里錯了
var http = require('http');
http.creatServer(function (req, res) {
?? ?res.writeHead(200, {'Content-Yype': 'text/plain'});
?? ?res.end('Hello World\n');
}).listen(1337, '127.0.0.0.1');
console.log('Server runnibg at http://127.0.0.1:1337/');
2016-07-04
你寫的http.creatServer(function (req, res) {
正確的http.createServer(function(req,res){
方法名寫錯了,解決問題記得采納
2022-03-29
您好,謝謝您的問題,目前有哪些不明確的地方嗎?我會根據您不明確的地方做出詳細的解答,你們的反饋會使我們課程做的越來越好,謝謝。
sruczngewxlsyrftexbuknkcaxhdnvwtwsckidpfqqxazspxqahtiznhejfdhhwsngbtfsppkclrilzvoorl
2016-07-04
通過cd 搜索路徑
在使用 node +文件名稱
2016-07-04
請問底下這個錯誤送什么?