我有一个响应的应用程序标签栏,我的建筑:路径适用于台式机,但不能移动
<template name="tabNav">
<nav class="bar bar-tab">
<a class="tab-item" id="groups-nav" href="{{pathFor 'groupsList'}}">
<span class="icon icon-star-filled"></span>
<span class="tab-label">Groups</span>
</a>
<a class="tab-item active" id="games-nav" href="{{pathFor 'locationSet'}}">
<span class="icon icon-list"></span>
<span class="tab-label">Games</span>
</a>
<!-- more code -->
</template>
的pathFor'groupsList的作品在桌面上,而不是在移动设备上。你可以在这里试试看:pp-groups.meteor.com。
这只是一个原型,并没有使用任何实际的数据。我所有的意见代码可以在这里找到:https://github.com/stewartmccoy/pp-groups/tree/master/groups/client/views
这是我定义的路由:
Router.map(function() {
this.route('layout', {
path: '/',
template: 'getLocation',
layoutTemplate: 'getLocation',
yieldTemplates: {
'tabNav': {to: 'footer'}
}
});
this.route('locationSet', {
path: '/locationSet',
template: 'locationSet',
layoutTemplate: 'locationSet'
});
this.route('groupsList', {
path: '/groupsList',
template: 'groupsList',
layoutTemplate: 'groupsList'
});
});
为什么没有在移动设备上pathFor工作? (它至少不能在Xcode iOS模拟器或iPhone Mobile Safari或Chrome上运行)。
我们在谈论哪个移动浏览器? –
@ChristianFritz它不适用于Xcode iOS模拟器或iPhone Mobile Safari或Chrome。 – stewartmccoy