<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
</style>
</head>
<body>
<div id="app">
<div v-if='score>=90'>优秀</div>
<div v-else-if='score<=90&&score>=80'>良好</div>
<div v-else-if='score<=80&&score>=60'>一般</div>
<div v-else='score<=80&&score>=60'>差</div>
</div>
<script type="text/javascript" src="./js/vue.js"></script>
<script>
/*
//对象绑定的值可以和数组结合使用
//class绑定的值可以简化操作
//默认的class如何处理
默认的class会保留
*/
var vm = new Vue({
//绑定的标签
el: '#app',
//自定义按键修饰符
data: {
score: 69
},
methods: {
handle: function() {
}
}
});
</script>
</body>
</html>
07-20
77
12-01
630
10-23
672