通过URL打开手风琴-深度链接(基础6.4.3)不起作用

时间:2018-08-27 16:59:43

标签: javascript html zurb-foundation-6

我按照zurb文档中的描述实施了代码。 URL中显示正确的ID。但是,一旦将此URL复制到新选项卡中,手风琴就不会打开。
出现以下JS错误:

TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jquery.js:9857)
at Accordion._checkDeepLink (foundation.js:1681)
at Accordion._init (foundation.js:1698)
at Accordion._setup (foundation.js:1619)
at Accordion.Plugin (foundation.js:164)
at new Accordion (foundation.js:1600)
at HTMLUListElement.<anonymous> (foundation.js:5490)
at Function.each (jquery.js:354)
at jQuery.fn.init.each (jquery.js:189)
at String.<anonymous> (foundation.js:5472)

我的手风琴代码的一部分:

   <ul class="accordion" data-accordion data-multi-expand="true" data-allow-all-closed="true"
                data-slide-speed="50"  data-deep-link="true" data-update-history="true" data-deep-link-smudge="true" data-deep-link-smudge-delay="500" id="deeplinked-accordion">
                <li class="accordion-item first" data-accordion-item>
                    <a href="#anwendungsgebite" class="accordion-title zu">Anwendungsgebiet<span class="open"></span></a>
                    <div class="accordion-content" data-tab-content style="position: relative">
                        <p>Benocten hilft Ihnen bei kurzfristigen Ein- und Durchschlafstörungen durch:</p>
                        <ul>
                            <li>nervöse Unruhe</li>
                            <li>Stress</li>
                            <li>Umstellungen auf Reisen</li>
                            <li>nächtlichem Husten (ausser Asthma)</li>
                            <li>Erkältung</li>
                            <li>Juckreiz</li>
                            <li>allergische Begleitsymptome</li>
                        </ul>
                       <div class="close_accordion"></div>

                    </div>
                </li>

0 个答案:

没有答案