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
| Java 48 mins โโโโโโโโโโโโโโโโโโโโโ 84.1% | |
| Groovy 3 mins โโโโโโโโโโโโโโโโโโโโโ 6.4% | |
| Gradle 2 mins โโโโโโโโโโโโโโโโโโโโโ 5.0% | |
| Properties 1 min โโโโโโโโโโโโโโโโโโโโโ 2.7% | |
| Java Pr... 0 secs โโโโโโโโโโโโโโโโโโโโโ 1.0% |
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" |