Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Koma b636780170 | 6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
index.html | 7 years ago |
条件判断式,根据表达式的真伪进行页面处理。
<p v-if="seen">快看我!</p>
处理数组循环,将数据循环显示到页面上。
<ol>
<li v-for="game in games">
{{ game.title }}
</li>
</ol>
<div id="myApp">
<h3>游戏列表</h3>
<div v-if="seen">2017最新发卖</div>
<ol>
<li v-for="game in games">{{game.title}} / {{game.price}}元</li>
</ol>
</div>
<script>
var myApp = new Vue({
el: '#myApp',
data: {
seen: true,
games: [
{title:'勇者斗恶龙',price:400},
{title:'超级马里奥',price:380},
{title:'我的世界',price:99},
],
},
});
</script>
Vue.js学习工程
HTML CSS Markdown
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》