The browser is showing an error message saying "Kursor is not defined". This error occurs because the Kursor library is not properly loaded or included in the web page.

To fix this issue, make sure that the script tag for the Kursor library is correctly added before the script where you are trying to initialize the Kursor object. Also, ensure that the library file is accessible and loaded successfully from the specified URL "https://cdn.jsdelivr.net/npm/kursor@0.0.14/dist/kursor.js".

Here is an example of how the script tags should be arranged:

<script src="https://cdn.jsdelivr.net/npm/kursor@0.0.14/dist/kursor.js"></script>

<script>
  new Kursor({
    el: '.scrollContainer'
  });
</script>

Double-check the URL and the script tag placement to ensure that the Kursor library is properly loaded before using it

script src=httpscdnjsdelivrnetnpmkursor0014distkursorjsscriptscriptnew Kursor el scrollContainerscriptbrowser says Kursor is not defined

原文地址: http://www.cveoy.top/t/topic/h7EZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录