使用v-bind后没有绑定
如题,title前面添加了v-bind,保存刷新页面没有显示绑定,代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>vue</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="root"></div>
<div v-bind:title="title">hello world</div>
<script>
new Vue({
el:"#root",
data:{
title:"this is hello world"
}
})
</script>
</body>
</html>