直接上代碼bash
<a v-for="(item,index) of floorsList" :key="index" :href="['#'+item.val]" >這是字符串拼接 </a> <img :src="['xxx(須要拼接的字符串)'+img]" alt="" width="100%" height="auto" /> 複製代碼
:title="` ${item.name} ` " 複製代碼