條件式+計算式
<html>
<head>
<meta charset="UTF-8">
<title>條件式+計算式</title>
</head>
<body>
<div id="show">
{{ a + b + c }} == 6 : {{ a + b + c == 6? 'yes' : 'no' }}
</div>
</body>
<script src="vue.js"></script>
<script>
new Vue({
el: '#show',
data: {
a: 1,
b: 2,
c: 3
}
});
</script>
</html>