0
Follow
0
View

The zoom jquery plugin is invalid

ct_orange 注册会员
2023-02-27 19:05

To see if the console plugin loads properly, especially when referring to Google cdn, is not open in China, a project error

img

cuiliang521 注册会员
2023-02-27 19:05

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > according to the code, you need inside label into the jQuery library, otherwise will not be able to identify the $symbol. Try adding the following code inside the tag:

<script src="https://code.jquery.com/jquery-3.6.0.min.js">script>


Then, put the code for $(document).ready() inside the tag. The final code looks like this:

<head>
  <script src="https://code.jquery.com/jquery-3.6.0.min.js">script>
head>
<body>
  <script style="display:none">
    $(document).ready(function(){
      $('#zoom28944056975609').zoom({ on:'click' });
    });
  script>
  <span class="zoom" id="zoom28944056975609">
    <img src="//cdn.shopify.com/s/files/1/0253/9752/6580/products/06_13374989-f60f-45b9-89c9-b500d4a41b08_1000x.jpg?v=1640328299" width="600" class="zoomzoomimg">
  span>
body>


If the problem persists, try viewing the error message in the browser console and debugging.

About the Author

Question Info

Publish Time
2023-02-27 19:05
Update Time
2023-02-27 19:05