我最近添加了一个javascript来执行faq页面的折叠功能 我的页面是一个使用JavaScript的滚动页面 但问题是崩溃javascript运行时:点击问题和答案出现 页面冻结,我不能再滚动我不知道为什么
这是网站http://sheetmulching.com/sr/examples/backgroundsFixed.html
这里是javascript
jQuery(document).ready(function () {
$('.togglefaq').click(function(e) {
e.preventDefault();
var notthis = $('.active').not(this);
notthis.find('.icon-remove ').addClass('icon-plus').removeClass('icon-remove ');
notthis.toggleClass('active').next('.faqanswer').slideToggle(300);
$(this).toggleClass('active').next().slideToggle("fast");
$(this).children('i').toggleClass('icon-plus icon-remove ');
});
})
什么是滚动冻结的解决方案?