我正在建立一个正常的网页,需要我加载大约5个 CSS 文件和10个 Javascript 文件。
现在开始生产,我按照需要的顺序将所有 Javascript 连接到一个文件中,并将所有 CSS 连接到另一个文件中。但当我试图运行连接文件的网页时,它会抛出一个错误:
Uncaught TypeError: undefined is not a function
在连接的 Javascript 文件中加载 jquery.min.js 的行上。
我能做什么来减轻这个? 我想连接所有的文件,并缩小他们的生产。请帮助。
编辑: 我将 Javascript 和 CSS 按照它们单独加载时的顺序进行了合并,并且运行良好。