1
即时通讯使用热毛巾模板,我想为每个导航路线添加一个不同的图像。我将如何实现这一目标?目前它只是使用相同的图像。添加图像到导航
这里是我的路由
function boot() {
router.mapNav('home');
router.mapNav('details');
router.mapNav('myPage');
log('Hot Towel SPA Loaded!', null, true);
return router.activate('home');
}
淘汰赛代码
<div id="frame">
<ul class="project-list" data-bind="foreach: router.visibleRoutes">
<li data-bind="css: { current: isActive }"><a data-bind="attr: { href: hash }" class=""
href="#"><span class="image"><i class="icon-desktop"></i></span><span class="title"
data-bind="text:name"></span></a></li>
</ul>
</div>