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
[Drupal 7에서 JavaScript 사용하기] (http://drupal.org/node/)를 참조하십시오. 756722) 드루팔 (Drupal 관련 정보는 동일합니다.) – Clive