- v-show 。 这个和h5的hidden有点像 , 用来设置可见的 。 true 是可见,false是不可见 。 可以在 vue的 data设置布尔型的值 , 直接写在里面
2.vue 和 jsp 的绑定有点像
3.v-for ,这里和jsp 的 for 也是很像的
:key 是索引
<select id=“cqyj_zt” style=“color: #000000;font-size: 18px;” v-model=“ProductActive” @change=“changeProduct($event)”>
<option v-for="(item,index) in productList" :key="index" :value='item.id' style="color: #000000;font-size: 18px;">{{item.title}}</option>
</select>
4.v-model 绑定数据