<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue入门</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="root">{{msg}}</div>
<script>
new vue({
el:"#root",
data:{
msg:"hello world"
}
})
</script>
</body>
</html>
页面显示{{msg}},不显示hello world
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue入门</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="root">{{msg}}</div>
<script>
new vue({
el:"#root",
data:{
msg:"hello world"
}
})
</script>
</body>
</html>
页面显示{{msg}},不显示hello world
2019-01-25