插值
Attribute
如果想将Vue实例上的属性,加到Html attribute上的话,{
{}}
已经不足以满足,此时我们就需要使用
v-bind指令来完成了。
<div id="app">
<span>
{
{
IDC}}
</span>
<br>
<span v-bind:id="IDC">
{
{
mes}}
</span>
<br>
<button v-bind:disabled="boo1">Button</button><br>
<button v-bind:disabled="boo2">Button</button>
</div>
<script>
var vm = new Vue({
el:"#app",
data:{
IDC:"hello",
mes:"hi"