a标签带参数跳转 11

<a class="bg-hover-hl mb-2" target="_blank" href="ht tp://localhost:63342/houlang/src/main/webapp/webContent/showProfessional.html?" v-fo r="second in bachelorPro.professionalList" 》
url后面的问号怎么拼接一个从数据库里面查出来的id 好久没写 忘了

<a class="bg-hover-hl mb-2" target="_blank" :href="'ht tp://localhost:63342/houlang/src/main/webapp/webContent/showProfessional.html?id='+id" v-for="second in bachelorPro.professionalList"></a>

https://www.xiaopiu.com/web/byId?type=project&id=60c2bad2bbd39d7e16a8918c9 这样就可以了

?后面接传递的参数名,等号后面用模板字符串${}调用data的变量

<a class="bg-hover-hl mb-2" target="_blank" href="`http://localhost:63342/houlang/src/main/webapp/webContent/showProfessional.html?id=${id}`" 
v-for="second in bachelorPro.professionalList" 

?参数名1={参数值1}&参数名2={参数值2}

?id="1"