I'm building a normal webpage which requires me to load about five CSS files and ten Javascript files.
- When loading them separately in the HTML page, my webpage loads fine.
-
现在,为了生产,我按照需要的顺序将所有Javascript连接到一个文件中,并将所有CSS连接到另一个文件中.但是,当我try 运行包含连接文件的网页时,它抛出一个错误,指出:
Uncaught TypeError: undefined is not a function
在jquery所在的行上.正在连接的Javascript文件中加载min.js.
我能做些什么来缓解这种情况?我想连接所有文件并缩小它们以用于生产.请帮忙.
EDIT: I merged the Javascript and CSS in the order they were when they were being loaded individually and were working fine.