脚本宝典收集整理的这篇文章主要介绍了Slog17_支配vue框架模版语法之v-for,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
实际上 结果是最重要的 根本没有人在乎你的过程 甚至根本就没有人在乎你
cd ~/Desktop
mkdir node_vue_directive_learningload
cd node_vue_directive_learningload
npm init
sudo npm install koa koa-static
index.js
const serve = require('koa-static');
const Koa = require('koa');
const app = new Koa();
// $ GET /package.json
app.use(serve('.'));
app.listen(3000);
console.log('listening on port 3000');
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ArthurSlog</title>
</head>
<body>
<h1>The static web server by ArthurSlog</h1>
</body>
</html>
v-for.html