<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - IT书包(www.itshubao.com)</title>
<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
<p v-if="seen">现在你看到我了</p>
<template v-if="ok">
<h1>IT书包</h1>
<p>宝剑锋从磨砺出,梅花香自苦寒来。</p>
<p>坚持就是胜利!!!</p>
</template>
</div>
</body>
</html>
new Vue({
el: '#app',
data: {
seen: true,
ok: true
}
})