由於某些原因,Vue不會爲我呈現{{post.title}}
,{{ post.content }}
括號。內容爲空(查看下面呈現的html),但v-bind:href="post.url"
出於某種原因。我是Vue.js的新手,現在真的很困難。 Backstory: 此代碼是Vue即時搜索我的Jekyll博客。Vue.js不顯示括號,如{{post.title}}
HTML
<div v-if="articles" class="large-12 columns">
<article v-for="post in itemsSearched" class="article-summary">
<header>
<h2><a v-bind:href="post.url">{{post.title}}</a></h2>
</header>
<p>{{ post.content }}</p>
<div class="large-12 column">
<a class="read-more" v-bind:href="post.url">Read More...</a>
<div class="middle_line"></div>
</div>
</article>
</div>
渲染HTML
<article class="article-summary">
<header>
<h2><a href="/jekyll-update/2017/05/23/welcome-to-jekyll.html"></a></h2>
</header>
<p></p>
<div class="large-12 column">
<a href="/jekyll-update/2017/05/23/welcome-to-jekyll.html" class="read-more">Read More...</a>
<div class="middle_line"></div>
</div>
</article>