<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Vue练习</title>
<script src="js/vue.js" ></script>
</head>
<body>
<div id="root">{{msg}}</div>
<script>
new Vue({
el:"#root",
data: {
msg:"hello world"
}
})
</script>
</body>
</html>
截图如上