swiper thumbnail Solutions active switch failure

  1. Error message: Can not read property 'indexOf' of undefined swiper.
  2. Source is swiper.min.js, first check to write their own js configuration is wrong, no plug-ins to debug the source code, you need to debug a non-compressed version of the js file.
  3. Open-source plug-in header comments, see the official website of the plugin, find the corresponding github repository in the official website. The first step is to find the relevant information in a bug recording error issues, see if someone else's problem consistent with their own.
  4.  

     

     

     

     

     

     

     

  5. If problems are found closed, to find the code submitted modifications to fix the problem
  6. See their own use of the latest version of the plug-in version and the official website is consistent, if the official website has been updated with the latest and newest contains this fix, then replace the local plugin with the latest version of the official website, this time found the latest version of the official master branch does not update this modification times, put the fourth step of modifying synchronized to the local swiper.min.js compressed files, code bug at using keyword targeting, confounding variables a, spaces removed.
  7. Save the compressed file and then test to repair the situation, while the other projects to replace swiper.min.js file date of this document.

Guess you like

Origin www.cnblogs.com/gduf/p/11463102.html