vue中的属性绑定和双向数据绑定
< html lang = "en" > < head > < meta charset = "UTF-8" > < title > 属性绑定和双向数据绑定 </ title > < script src = "./vue.js" > < / script > </ head > < body > < div id = "root" > < div title = "this is hello world" > hello world </ div >//title作用是当鼠标放在hello world 上面的时候,显示this is hello world </ div > < script > new Vue ({ el: "#root" , }) < / script > </ body > </ html > 提示语可变的情况: < html lang = "en" > < head > < meta charset = "UTF-8" > < title > 属性绑定和双向数据绑定 </ title > < script src = "./vue.js" > < / script > </ head > < body > < div id = "root" > < div v-bind:title = "title" > hello world </ div >/