最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why doesn't my JS script load?

programmeradmin1浏览0评论

To finish my website I need to add a JS script which is applied to the header. I installed a plugin called "JavaScript AutoLoader", made a new directory called "jsautoload" in my child theme folder and inserted the script. I also added code in functions.php for it to load the jQuery library. Some time ago I added the script to the JS folder of my parent theme. None of these methods work. Do I need to do something else? This is my JS script:

<script
   src=".4.1.js"
   integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
   crossorigin="anonymous">
</script>
<script type="text/javascript">
   $(document).on('click', 'ul li', function(){
   $(this).addClass('active').siblings().removeClass('active')
   })
</script>
发布评论

评论列表(0)

  1. 暂无评论