0
當我多次刷新頁面時,我的JavaScript纔開始工作。JavaScript只在刷新頁面多次後才工作
請看看下面的代碼 -
<div class="col-xs-6 col-sm-3 js--isotope-target js--cat-2" data-price="14.36" data-rating="4">
<div class="products__single">
<figure class="products__image">
<a href="single-product.html">
<img alt="#" class="product__image" width="263" height="334" src="images/dummy/w263/2.jpg">
</a>
<div class="product-overlay">
<a class="product-overlay__more" href="single-product.html">
<span class="glyphicon glyphicon-search"></span>
</a>
<div class="product-overlay__stock">
<span class="in-stock">•</span> <span class="in-stock--text">In stock</span>
</div>
</div>
</figure>
<div class="row">
<div class="col-xs-9">
<h5 class="products__title">
<a class="products__link js--isotope-title" href="single-product.html">Moringa Powder</a>
</h5>
</div>
</div>
<div class="products__category">
Powders
</div>
</div>
</div>
我曾試圖重置瀏覽器Javacript(禁用然後重新啓用它),但是毫無效果,JavaScript的永遠不會奏效第一加載頁面時,我不得不總是多次刷新頁面以獲得JavaScript的工作!
*「看看下面的代碼」 * ......你已經證明都是一些HTML,怎麼會幫助我們理解這個問題?花幾分鐘時間來回顧[問]和[MCVE] – charlietfl
我很驚訝的JavaScript,你有沒有在你的頁面刷新任何後一切運作 –
請包括代碼的您的JavaScript部分 –