vue.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.isActive {
color: green;
}
.isError {
color: red;
}
</style>
</head>
<body>
<div id="app">
<!-- <h1>{
{message}} {
{num+1}}</h1> -->
<h1>{
{message}}</h1>
<h1>{
{reversedMessage}}</h1>
<!-- 绑定自定义属性 data-id -->
<!-- <div><a :href="href" :data-id="message" :class="{'isActive':see,'isError':'!see'}">百度</a></div> -->
<!-- <div><a :href="href" :data-id="message" :class="['a',message,{'isActive':see}]" :style="styles">百度</a></div> -->
<div><a :href="href" :data-id="message" :class="['a',message,{'isActive':see}]" :style="[style1,style2]">百度</a></div>
<h1>条件渲染</h1>
<div>
<div v-if='see'>if true</div>
<div v-else>if false</di