0

fancybox只开放一次。下次它会产生错误。我有公司列表和函数调用onClick

function Singin(jobid) {
    $.fancybox({
        href: "/Contact/PopBid?jobid=" + jobid,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'width': 850,
        'height': 394,
        **success: function () {
            parent.$.fancybox.close();
            //Do stuff**                      if i remove this then get error on Height
        }

    });

}

日志:

jquery.min.js (line 141)

TypeError: $.fancybox is not a function
[Break On This Error]   

success: function () {

编辑(从评论中移出):

使用的文件:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<link href="../../Scripts/Fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" />
<script> !window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>'); </script>
<script src="../../Scripts/Fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script src="../../Scripts/Fancybox/jquery.fancybox-1.3.4.pack.js"></script>
4

0 回答 0