可以这样写v-bind:src:" "
也可以:src:" "
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DocumentDocument</title>
</head>
<body>
<div id='itany'>
<img v-bind:src="url" alt="">
<!--绑定src-->
</div>
<script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>
<script>
new Vue({
el:'#itany',
data:{
url:'img/1.jpg'//图片链接路径
}
})
</script>
</body>
</html>