1、下载Vue.js
官方下载地址:
https://cn.vuejs.org/v2/guide/installation.html
2、撸代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HelloWorld</title>
<!--引入Vue.js-->
<script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
<h1>HelloWorld</h1>
<hr>
<div id="app">{{message}}</div>
<!--实例化Vue-->
<script type="text/javascript">
var app=new Vue({
el:'#app',//选中id=app的元素
data:{//声明参数
message:'hello world!1111'
}
})
</script>
</body>
</html>