欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vue中數(shù)據(jù)綁定值(字符串拼接)的幾種實(shí)現(xiàn)方法

 更新時(shí)間:2023年07月05日 14:25:45   作者:JackieDYH  
這篇文章主要介紹了vue中數(shù)據(jù)綁定值(字符串拼接)的幾種實(shí)現(xiàn)方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教

vue數(shù)據(jù)綁定值(字符串拼接)的幾種方法

案例 

<div :title="`你好:${item.Storename}`" link="/component/radio" :inline-desc="'地址:' + item.Storeaddess"></div>
:title="`字符串${xx}`"?
:title="'字符串' + xx"

vue中select綁定多個(gè)值

不再通過v-model和value進(jìn)行綁定

而是通過綁定索引值Index

然后通過定義@input=change方法,通過索引值獲取并更新想要綁定的多個(gè)值

<el-select v-model="basic_info.itemindex" placeholder="" ?@input="change">
?? ?<el-option v-for="(item,index) in categoryList" :key=index :label="item.categoryName" :value="index" />
</el-select>
change(index) {
? ? ? this.basic_info.categoryCode = this.categoryList[index].categoryCode
? ? ? this.default_return_value = this.categoryList[index].defaultReturnValue
},

總結(jié)

以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論