在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ html超鏈接鏈接地址如何使用變量?

html超鏈接鏈接地址如何使用變量?

使用v-for循環(huán)輸出變量,變量為超鏈接href地址,curnew.url為存儲的url地址,href怎么寫?相關(guān)代碼如下:

        <el-col :offset="4" :span="16" v-for="curnew in news" :key="curnew.id" style="margin-bottom:30px">
            <p><a href=curnew.url target="_blank"><font size="4">{{curnew.title}}</font></a></p>
        </el-col>
回答
編輯回答
乖乖噠
    <el-col :offset="4" :span="16" v-for="curnew in news" :key="curnew.id" style="margin-bottom:30px">
        <p><a :href="curnew.url" target="_blank"><font size="4">{{curnew.title}}</font></a></p>
    </el-col>
2018年6月2日 23:03