<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>演示数据如何渲染到dom</title>
</head>
<body>
<div id="app">
<p>{{message}}</p>
</div>
<script src="../js/vue.js"></script>
<script>
let myData = {
message:'Hello Vue'
};
let vm = new Vue({
el:'#app',
data:myData
});
</script>
</body>
</html>
vue-例2-3演示数据如何渲染到dom.html
最新推荐文章于 2024-09-10 11:56:39 发布