Menu
×
×
正确
<div id="app">
<p @(4)="typewritersInStock">
in stock
</p>
<p @(6)>
not in stock
</p>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
const app = Vue.createApp({
data() {
return {
typewritersInStock: true
}
}
})
app.mount('#app')
</script>
<div id="app">
<p v-if="typewritersInStock">
in stock
</p>
<p v-else>
not in stock
</p>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
const app = Vue.createApp({
data() {
return {
typewritersInStock: true
}
}
})
app.mount('#app')
</script>
不正确
点击 此处 重试 正确
下一题 ❯<div id="app"> <pw3exercise_input_no_0="typewritersInStock"> in stock </p> <pw3exercise_input_no_1> not in stock </p> </div> <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> <script> const app = Vue.createApp({ data() { return { typewritersInStock: true } } }) app.mount('#app') </script> |