我採取了以下插件在進入一個Drupal網站https://github.com/linnett/backgroundVideo跟隨他們到T.jQuery的未捕獲引用錯誤 - 元素沒有定義
我收到一個錯誤jQuery uncaught reference error: element is not defined
說明。這是我的site。
我採取了以下插件在進入一個Drupal網站https://github.com/linnett/backgroundVideo跟隨他們到T.jQuery的未捕獲引用錯誤 - 元素沒有定義
我收到一個錯誤jQuery uncaught reference error: element is not defined
說明。這是我的site。
變量element
應該是對您的視頻元素的引用。
var element = "#TheVideoElementId";
據GitHub的項目,也都提供了例子,element
是隻爲你<video>
封裝的佔位符。所以如果你複製了這個例子,你只需要使用下面的代碼。
jQuery(document).ready(function() {
jQuery('#my-video').backgroundVideo({
$videoWrap: $('#cmn-video-demo3__container'),
$outerWrap: $('.block-block block-block-10')
});
});
'的jQuery(元).backgroundVideo({...'元素變量沒有定義。 – Aer0
你在哪裏定義元素? – epascarello