Ember.Js标题重复性

时间:2014-10-05 04:41:38

标签: javascript ember.js

大家好我想问为什么在我的ember网站上的其他页面中出现了一个单词。澄清我的意思是我有一个主页,但后来我去产品页面 - >返回我的主页,我有产品页面的标​​题显示。这非常烦人,因为我一直在学习ember,我可以连接多个静态页面有多么简单,我不想再回到简单的html。这是下面的代码。谢谢大家。

注意:这只是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>

1 个答案:

答案 0 :(得分:0)

你有糟糕的HTML,缺少结束div或类似的东西。