v-clock的作用:
<!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>
[v-cloak]{
display: none;
}
</style>
</head>
<body>
<div id="app">
<div v-pre>
<p :title="message">{{message}}</p>
</div>
<div v-cloak>
<h1 v-text="message"></h1>
<h1>{{message}}</h1>
</div>
<h1 v-text="message"></h1>
<h1>{{message}}</h1>
<div v-once>
<h1 v-text="message"></h1>
</div>
</div>
<script src="./vue.js"></script>
<script>
const app = new Vue({
el: '#app',
data: {
message: 'hello'
},
methods: {
}
})
</script>
</body>
</html>