1
嗨,大家好,我想問一個問題,爲什麼一個單詞會在我的餘燼網站的其他頁面上彈出。澄清我的意思是說,我有一個主頁,但後來我去了一個產品頁面 - >返回到我的主頁,並且顯示了產品頁面的標題。這非常煩人,因爲我一直在學習ember,並且我可以很簡單地連接很多靜態頁面,我不想回去簡單的html。這是下面的代碼。謝謝大家。Ember.Js標題重複性
注意:這只是Mainpage.html。我正在使用PHP將所有這些頁面包含到我的索引中,以便可能與它有關。
<script type="text/x-handlebars" data-template-name='index'>
<div id="main-page-container">
<h1>Technological Business Marketplace</h1>
</div>
<div id="main-page-container">
<p>There are {{productsCount}} products</p>
<img {{bind-attr src='img/slidelogo.png'}} alt='Logo' />
<p>uploaded on {{time}}</p>
</div>
<div>
<div id="wrapper">
<div id="wrapper-filter">
<ul id="filter">
<li class="active">All</li>
<li>Applications</li>
<li>Websites</li>
<li>Services</li>
<li>Domains</li>
</ul>
</div>
<ul id="portfolio">
<li class="All Applications"><img id="1" src="img/loginback.jpg" alt=""/></li>
<li class="All Websites"><img id="2" src="img/loginback.jpg" alt=""/></li>
<li class="All Websites"><img id="3" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="4" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="5" src="img/loginback.jpg" alt=""/></li>
<li class="All Domains"><img id="6" src="img/loginback.jpg" alt=""/></li>
<li class="All Domains"><img id="7" src="img/loginback.jpg" alt=""/></li>
<li class="All Domains"><img id="8" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="9" src="img/loginback.jpg" alt=""/></li>
<li class="All Websites"><img id="10" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="11" src="img/loginback.jpg" alt=""/></li>
<li class="All Websites"><img id="12" src="img/loginback.jpg" alt=""/></li>
<li class="All Domains"><img id="13" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="14" src="img/loginback.jpg" alt=""/></li>
<li class="All Applications"><img id="15" src="img/loginback.jpg" alt=""/></li>
<li class="All Applications"><img id="16" src="img/loginback.jpg" alt=""/></li>
<li class="All Domains"><img id="17" src="img/loginback.jpg" alt=""/></li>
<li class="All Services"><img id="18" src="img/loginback.jpg" alt=""/></li>
<li class="All Applications"><img id="19" src="img/loginback.jpg" alt=""/></li>
<li class="All Applications"><img id="20" src="img/loginback.jpg" alt=""/></li>
</ul>
</div>
</div>
</script>
<script src="js/filter.js"></script>
你可以在jsbin中重現你的問題嗎? – blessenm 2014-10-05 12:48:41