且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ReferenceError:运行JasmineHeadlessWebkit时找不到变量:$

更新时间:2023-11-18 14:57:52

我也遇到了这个问题。我修改它通过更改我的jasmine.yml加载jquery之前,它加载的其余的javascript文件:

I ran into this problem also. I fixed it by changing my jasmine.yml to load jquery before it loads the rest of the javascript files:


src_files:
  - public/js/jquery.js
  - public/js/**/*.js