<!DOCTYPE html>
<html lang="zh">
<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>vue自学:V-pre指令的用法</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app" v-pre="message">
{{message}},测试一下v-pre
</div>
</body>
<script type="text/javascript">
//当使用v-pre时,胡子符{{}}会被直接输出
//当时用v-pre时,胡子符{{}}不会解析
//pre为原意输出
let app = new Vue({
el:’#app’,
data:{
message:’test’
}
})
</script>
</html>