1

我尝试使用 jqzoom javascript,但不起作用。在 firebug 中出现此错误 TypeError: $(...).jqzoom is not a function。我下载并加载了 javascripts。代码是:

<script src="{base_url()}assets/js/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="{base_url()}assets/js/jquery.jqzoom-core.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{base_url()}assets/css/jquery.jqzoom.css" >

<script>
    $(document).ready(function(){                      
        $('.xxx').jqzoom();  
    });
</script> 

{foreach $items as $item}
<div class="item_details">
  <a class="xxx" href="{base_url()}assets/image/{$item->code}/{$item->name}"><img  id="img_details" src="{base_url()}assets/image/{$item->code}/{$item->name}"></a>
</div>
{/foreach}
4

2 回答 2

2
download and load 
<script src=".../jquery-1.6.js"></script>
于 2013-04-21T11:59:06.707 回答
0

使用zoom()代替jqzoom()

于 2019-09-06T09:34:41.830 回答