Magnific Popup Modal问题'GetInline'

时间:2013-11-06 18:33:18

标签: javascript jquery magnific-popup

我收到此错误

  

对象[object Object]的属性'getInline'不是函数

执行此代码时

HTML

    <div id="test-modal" class="mfp-hide white-popup-block">
            <h1>TITLE</h1>
            <p>Lorem ipsum</p>
            <p><a href="http://google.com">Go back to home page</a> or <a class="popup-modal-dismiss" href="#">Dismiss</a></p>
</div>

JS

$(document).ready(function() {
                $.magnificPopup.open({
                    items: {
                        src: '#test-modal',
                    },
                    type: 'inline',
                    preloader: false,
                    modal: true
                }, 0);
});

由于

0 个答案:

没有答案