Menu
×
×
正确
<form v-on:@(14)="addItem">
<p>Add item</p>
<p>
Item name:
<input type="text" required @(7)="itemName">
</p>
<p>
How many:
<input type="number" @(7)="itemNumber">
</p>
<button type="submit">Add item</button>
</form>
<form v-on:submit.prevent="addItem">
<p>Add item</p>
<p>
Item name:
<input type="text" required v-model="itemName">
</p>
<p>
How many:
<input type="number" v-model="itemNumber">
</p>
<button type="submit">Add item</button>
</form>
不正确
点击 此处 重试 正确
下一题 ❯<form v-on:w3exercise_input_no_0="addItem"> <p>Add item</p> <p> Item name: <input type="text" requiredw3exercise_input_no_1="itemName"> </p> <p> How many: <input type="number"w3exercise_input_no_2="itemNumber"> </p> <button type="submit">Add item</button> </form> |