1.知识点
- CDN的使用,CDN查询网站:https://www.bootcdn.cn/
- Vue的基本数据绑定
2.实例
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
</head>
<body>
<div id="content">
<h1>{{msg}}</h1>
<h2>{{msg}}</h2>
<h3>{{msg}}</h3>
</div>
<script>
new Vue({
el:'#content',
data:{
msg:'hello world'
}
})
</script>
</body>
</html>
网页效果: