引入插件的时候 提示particlesJS is not defined

Posted sallyshan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了引入插件的时候 提示particlesJS is not defined相关的知识,希望对你有一定的参考价值。

插件或者js文件在引入时需要注意引入顺序,每次都找很久的错误

一般引入min.js就可以,min.js意思就是压缩的js文件

引入时应该先加入min类的文件在引入配置文件

比如particles插件,先加入particles.min.js文件在加入app.js配置粒子状态

放置在<head>或者<body>尾部都是可以,但是注意顺序,顺序不对就会

出现
Uncaught ReferenceError: particlesJS is not defined错误提示

在自己写js文件时,发现许多js写在body中和写在js文件产生不同效果,

如下为正确顺序

技术图片

 

 

以上是关于引入插件的时候 提示particlesJS is not defined的主要内容,如果未能解决你的问题,请参考以下文章

Nuxt中引入插件时报window is not defined

解决phpStorm使用vue提示"Attribute v-xxx is not allowed here"的问题

vue表单验证的时候提示 async-validator:‘‘ is not a string

vue表单验证的时候提示 async-validator:‘‘ is not a string

vue表单验证的时候提示 async-validator:‘‘ is not a string

vue表单验证的时候提示 async-validator:‘‘ is not a string