此代码在主页上工作,但不能在任何其他页面上工作我无法理解其中的问题。
在 codeigniter 配置文件中,'csrf_protection' 也是 FALSE。
查询
$(document).ready(function () {
$("#services").hover(
function () {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideDown("fast");$(this).toggleClass('open');},
function () {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideUp("fast");$(this).toggleClass('open');}
);
});
HTML
<li id="services" class="dropdown" data-wow-delay="0.2s"><a <?= active('services') ?> data-toggle="dropdown" href="#">Services</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?= base_url('services/dry-cleaning') ?>">Dry Cleaning</a></li>
<li><a href="<?= base_url('services/fluff-fold') ?>">Fluff & Fold</a></li>
<li><a href="<?= base_url('services/wedding-gowns') ?>">Wedding Gowns</a></li>
<li><a href="<?= base_url('services/drapery') ?>">Drapery</a></li>
<li><a href="<?= base_url('services/table-bed-linens') ?>">Table & Bed Linens</a></li>
<li><a href="<?= base_url('services/alterations') ?>">Alterations</a></li>
<li><a href="<?= base_url('services/purse-rug-leather-cleaning') ?>">Purse | Rug | Leather Cleaning</a></li>
</ul>
</li>