我将同一导航栏用于商店产品和商店产品。 @if语句不起作用。这是导航栏:
<ul class="navbar-nav ml-auto">
<li class="nav-item">
@if (\Request::path('/shop'))
<a class="nav-link js-scroll-trigger" href="#page-top">Shop</a>
@elseif (\Request::path('/product'))
<a class="nav-link js-scroll-trigger" href="/shop">Shop</a>
@endif
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
</li>
</ul>
这是路线:
Route::view('/product', 'shop.product');
Route::get('/shop', 'ShopController@index')->name('shop.index');
答案 0 :(得分:0)
您可以使用请求的import numpy as np
target_batch = np.array([[297, 242, 430, 451, 507, 507, 505, 506, 506, 506, 506, 506], [297, 242, 430, 451, 507, 507, 505, 506, 506, 506, 506, 506], ...]) #full list of lists
enc_input = tf.placeholder(dtype = tf.float32, shape=target_batch.shape, name=None)
功能。如下:
request()->is()