let hot = {
props: ['icon', 'name', 'id', 'theme', 'post', 'slgon'],
template: `<li>
<img :src="icon" :alt="name" class="l">
<div class="list-item l">
<h3><a href="/forum/list/?id={{ id }}" >{{ name }}</a></h3>
<p class="slgon">{{ slgon }}</p>
</div>
</li>`
}
href="/forum/list/?id={{ id }}"
这样的如何进行拼接?
<a v-bind:href="'/forum/list/?id=' + id" >
这样试一下呢,我刚才用vue2.0就这样拼接成功了