vue学习笔记(v-text v-html v-on v-model)-panda

1.v-bind

<h1>v-bindh1>
    <div id="app">
        <img v-bind:src="imgSrc" width="200px">
    div>
    <script type="text/javascript">
        var app= new Vue({
            el:'#app',
            data:{
                imgSrc:"https://cn.vuejs.org/images/logo.png"
            }
        })
    script>

你可能感兴趣的:(vue.js)