我有一個響應的應用程序標籤欄,我的建築:路徑適用於臺式機,但不能移動
<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