虚拟路径前缀示例
// Set up Express
var express = require('express');
var app = express();
// Specify mount path, '/static', for the static directory
app.use('/static', express.static('public'));
// Start Express server
app.listen(3030);
// Set up Express
var express = require('express');
var app = express();
// Specify mount path, '/static', for the static directory
app.use('/static', express.static('public'));
// Start Express server
app.listen(3030);