在Vue中,下列写法错误的是
(A)<button :click="doAdd">加法</button>
(B)<button v-on:click="doSub(event)">减法</button>
(C)<button @click="alert(vm.num1*vm.num2)">乘法</button>
(D)<button @click="doDiv()">除法</button>
参考答案
继续答题:下一题
(A)<button :click="doAdd">加法</button>
(B)<button v-on:click="doSub(event)">减法</button>
(C)<button @click="alert(vm.num1*vm.num2)">乘法</button>
(D)<button @click="doDiv()">除法</button>