JsTestDriver-$不是函数 [英] JsTestDriver - $ is not a function

查看:86
本文介绍了JsTestDriver-$不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个奇怪的问题,声称$不是一个函数/未定义.显然,这意味着它认为未定义JQuery,但是如果我查看页面的源并检查请求,则肯定会拉JQuery.

I'm getting a strange problem, claiming that $ is not a function/is undefined. Obviously, this means that it thinks JQuery isn't defined, but if I view the source of the page and check requests, JQuery is definitely being pulled.

Total 0 tests (Passed: 0; Fails: 0; Errors: 0) (0.00 ms)
  Firefox 8.0 Linux: Run 10 tests (Passed: 0; Fails: 0; Errors 10) (0.00 ms)
    error loading file: /test/src/coffee.js:88: $ is not a function

我的配置文件如下;

server: http://localhost:9876
timeout: 90
load:
    - src/datejs.js
    - src/jquery-1.6.4.js
    - src/jquery-ui-1.8.16.custom.min.js
    - src/jquery.ui.autocomplete.js
    - src/jquery.jgrowl.js
    - src/jquery.qtip.js
    - src/typewatch.js
    - src/tristate.js
    - src/jquery.weekcalendar.js
    - src/highcharts.js
    - src/coffee.js
    - # rest omitted for brevity...

任何对此的帮助将不胜感激.我试图删除我的JQuery条目,以防它们与JsTestDriver提供的版本中的条目重叠.

Any help with this would be greatly appreciated. I've tried removing my JQuery entries in case they're overlapping with the ones in the version provided by JsTestDriver.

推荐答案

我有时会遇到使用'$'的问题(特别是在Drupal中).用'jQuery'替换'$'是否有效?

I've sometimes run across issues using '$' (particularly in Drupal). Does replacing '$' with 'jQuery' have any effect?

这篇关于JsTestDriver-$不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆