我有以下代码,
$("#nav").accordion({
event: "mouseover",
autoHeight: false,
collapsible: false,
animate: 'bounceslide',
<?php
// Checks for active page and opens the related tab
$uri = $_SERVER['REQUEST_URI'];
switch($uri):
case '/anti-social-behavior-logging':
echo('active: 0,'); break;
case '/telehealth-services':
echo('active: 1,'); break;
case '/telecare-services':
echo('active: 2,'); break;
case '/lone-worker-safety-services':
echo('active: 3,'); break;
case '/repairs-reporting-services':
echo('active: 4,'); break;
default:
echo('active: 5,');
endswitch;
?>
});
但是我收到以下错误,
未捕获的TypeError:对象#没有方法'bounceslide'
这是为什么?您可以在http://www.astraline.co.uk看到问题 - 据我所知,我拥有了所需的所有库。
答案 0 :(得分:0)
您似乎需要放置animated
而不是animate
。
请参阅:http://docs.jquery.com/UI/Accordion/accordion#option-animated