vue的库文件在官网上下载:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="app">
<div>{{msg}}</div>
</div>
<script type="text/javascript" src="vue.js"></script>
<script>
var vm=new Vue({ //vue的V要大写
el:'#app',
data:{
msg:'Hello World!'
}
});
</script>
</body>
</html>