脚本宝典收集整理的这篇文章主要介绍了Slog16_支配vue框架模版语法之v-else-if,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
你选择自己喜欢的 可能会在经济上一开始更艰难 你可以选择平坦的路 一开始走着很舒心 你也可以在在途中 选择一条崎岖的路 感受下生命的另一种色彩 这条崎岖的路可能让你看不到尽头 而且越走越泥泞 但我敢保证一点的是 当你真的坚持走下去看到路开始平坦的时候 你会无比的幸福 并且有成就感
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-else-if.html