我想通过drupal 7中的theme.info添加foundation.js和foundation-topbar.js版本4到page.tpl.php。我可以看到jquery和正确添加基础js文件-jquery上述基础js文件 - 但我得到这个错误:
TypeError: $ is undefined
(Foundation.zj, this, this.document)); // foundation-topbar.js line 206
ReferenceError: Foundation is not defined
(Foundation.zj, this, this.document)); // foundation-topbar.js line 206
可能是冲突。可能值得在这里寻找:http://api.jquery.com/jQuery.noConflict/或使用'jQuery'而不是'$' – jchapa 2013-03-03 07:51:15
请参阅[在Drupal 7中管理JavaScript](http://drupal.org/node/ 756722)为Drupal的具体信息(虽然它是相同的东西) – Clive 2013-03-03 16:13:32