<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="app">
<div>{{content}}</div>
<div v-text="content"></div>
<div v-html="content"></div>
</div>
<script>
var app = new Vue({
el: '#app',
data: {
content:'hallo'
}
})
</script>
</body>
</html>
vue模板语法,插值表达式和v-text,v-html
最新推荐文章于 2023-03-06 15:24:24 发布