1. v-pre
- v-pre is used to skip the compilation process of this element and its child elements, used to display the original Mustache syntax
2. Code combat
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="app">
<p>{
{message}}</p>
<p v-pre>{
{message}}</p>
</div>
<script>
const app = new Vue({
el:"#app",
data:{
message:"Hello Ting,I am Key!"
}
})
</script>
</body>
</html>
3. Operation results