This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeScript 5 hrs 43 mins โโโโโโโโโโโโโโโโโโโโโ 35.0% | |
Java 3 hrs 2 mins โโโโโโโโโโโโโโโโโโโโโ 18.6% | |
Vue.js 2 hrs 42 mins โโโโโโโโโโโโโโโโโโโโโ 16.6% | |
HTML 2 hrs 29 mins โโโโโโโโโโโโโโโโโโโโโ 15.2% | |
JSON 56 mins โโโโโโโโโโโโโโโโโโโโโ 5.8% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); // ๅฏผๅ ฅ Express ๆจกๅ | |
const app = express(); // ๅๅปบ express() ๅฎไพ | |
// ่ทฏ็ฑๅฎไน | |
// ็ๅฌๆ น่ทฏๅพ`/` | |
app.get('/', (req, res) => { | |
res.send('Hello World!'); | |
}); | |
// ๅจ3000็ซฏๅฃๅฏๅจๆๅกๅจๅนถๆๅฐๆฅๅฟ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ่ฐ็จ HTTP ๆจกๅ | |
const http = require("http"); | |
// ๅๅปบ HTTP ๆๅกๅจๅนถ็ๅฌ 8000 ็ซฏๅฃ็ๆๆ่ฏทๆฑ | |
http.createServer((request, response) => { | |
// ็จ HTTP ็ถๆ็ ๅๅ ๅฎน็ฑปๅๆฅ่ฎพๅฎ HTTP ๅๅบๅคด | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
// ๅ้ๅๅบไฝ "Hello World" |