const express = require('express');
const app = express();
//创建路由对象
const home = express.Router();
app.use('/home', home);
home.get('/index', (req, res) => {
res.send('欢迎来到我的页面')
})
app.listen(3000);
console.log('服务器启动成功');
2024-06-12 09:25:36 阅读次数:5
const express = require('express');
const app = express();
//创建路由对象
const home = express.Router();
app.use('/home', home);
home.get('/index', (req, res) => {
res.send('欢迎来到我的页面')
})
app.listen(3000);
console.log('服务器启动成功');
下一篇:p7zip解决zip error: Entry too big to split, read, or write (file exceeds Zip‘s 4GB uncompressed size l
前端-vue基础48-综合案例图书管理7修改数据
好客租房76-setState方法说明(1更新数据)
好客租房95-编程式导航
好客租房96-默认路由
好客租房83-组件性能优化(3减少不必要的渲染)
前端-vue基础46-综合案例图书管理5添加图书
好客租房92-路由的基本使用
好客租房94-路由的执行过程
react笔记之完成meals组件
好客租房77-setState方法说明(2推荐语法)
文章
22507
阅读量
2161500
2024-07-03 05:38:51
2024-07-01 01:33:31
2024-07-01 01:33:26
2024-07-01 01:33:26
2024-07-01 01:32:44
2024-07-01 01:32:44
2023-05-11 06:08:00
2023-04-21 03:04:35
2023-04-23 09:34:48
2022-12-28 07:22:30
2023-04-23 09:44:23
2023-04-21 02:58:02