在使用的Vue的v-bind给超链接添加href属性时,需要添加引号把网址包含进去,举例如下:
<a :href="'https://www.catchstar.top'">My site</a>
下面是一个带参数的链接,id是一个变量
<a :href="'https://www.catchstar.top?p='+id">一个Vue table问题</a>
在使用的Vue的v-bind给超链接添加href属性时,需要添加引号把网址包含进去,举例如下:
<a :href="'https://www.catchstar.top'">My site</a>
下面是一个带参数的链接,id是一个变量
<a :href="'https://www.catchstar.top?p='+id">一个Vue table问题</a>