我正在尝试将metro panel jquery和isotope jquery与此函数合并,然后我在jquery中收到此未捕获的类型错误。
虽然我正在第一次加载页面,但在此之后它无效并发出此错误。
<script type="text/javascript">
$(window).load(function() {
$('#metropanel').metropanel({
Uncaught TypeError: Object [object Object] has no method
'metropanel'
mpPosition:'left',
mpMainItemBg: '#353535',
mpSubmenuBg: '#353535',
mpActiveItem:'transparent-smoke',
mpHoverItem:'transparent-blue',
contentPosition:'related',
contentEffect:'slideLeft',
contentEffectDuration:400,
MainListScrollBarStyle: 'solid-olive',
SubmenuScrollBarStyle: 'solid-blue',
mpState:1,
MainItemDisplay:8
});
$(document).ready(function() {
$("body").append("<div id='divSmallBoxes'></div>");
$("body").append("<div id='divMiniIcons'></div><div id='divbigBoxes'></div>");
$(".OpenSideBar").pageslide({ direction: "left" });
});
});
如何解决?