📅  最后修改于: 2022-03-11 15:03:46.502000             🧑  作者: Mango
var cgi = require('cgi');
var http = require('http');
var path = require('path');
var script = path.resolve(__dirname, 'hello.cgi');
http.createServer( cgi(script) ).listen(80);