learning express stpe(三)

use static resourceL:

const express = require('express');
const app =  express();

app.use(express.static('public'));

app.listen(3000, () => console.log('Example app listening on port 3000!'));

result :

 

 

posted @ 2019-06-12 16:03  嵌入式实操  阅读(88)  评论(0编辑  收藏  举报