http.creatServer is not a function,請(qǐng)問是哪里錯(cuò)了
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){
方法名寫錯(cuò)了,解決問題記得采納
2022-03-29
您好,謝謝您的問題,目前有哪些不明確的地方嗎?我會(huì)根據(jù)您不明確的地方做出詳細(xì)的解答,你們的反饋會(huì)使我們課程做的越來越好,謝謝。
sruczngewxlsyrftexbuknkcaxhdnvwtwsckidpfqqxazspxqahtiznhejfdhhwsngbtfsppkclrilzvoorl
2016-07-04
通過cd 搜索路徑
在使用 node +文件名稱
2016-07-04
請(qǐng)問底下這個(gè)錯(cuò)誤送什么?