3 Star 6 Fork 1

Gitee 极速下载/weui.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Tencent/weui.js
克隆/下载
test.js 409 Bytes
一键复制 编辑 原始数据 按行查看 历史
bear 提交于 2022-04-29 12:02 +08:00 . 1.2.15
// app.js
const Koa = require('koa');
const router = require('koa-route');
const ip = require('ip');
const app = new Koa();
const main = ctx => {
ctx.response.body = 'Hello World';
};
const welcome = (ctx, name) => {
ctx.response.body = 'Hello ' + name;
};
app.use(router.get('/', main));
app.use(router.get('/:name', welcome));
app.listen(3001);
console.log('listening on port 3001', ip.address());
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/weui.js.git
git@gitee.com:mirrors/weui.js.git
mirrors
weui.js
weui.js
master

搜索帮助