条件渲染
<!DOCTYPE html>
<htm1>
<head>
<meta charset- "utf-8">
<title><title>
<script src-"vue.js" type-" text/javascript" charset="utf-8"></script>
< /head>
<body>
<div id-"app">
<div v-if="type===’A’">
A
</div>
<div v-if="type===’B’">
B
</div>
<div v-if="type===’C’">
C
</div>
<div v-else>
Not A/B/C
</div>
</div>
<script type="text/javascript">
var vm = new Vue({
el : "#app",
date:{
type:“”
}
});
</script>
<style type-"text/css">
</style>
</body>