我总是对打开/关闭按钮感到困惑。
这可能是错误的方式 - 但我似乎无法让第二次交替运行。
还有什么我应该使用的吗?谢谢
$(currentSlideHtmlObject).find('.openSpec').on('click',
function (e){
e.preventDefault();
$techSpec.animate({
left : '-' + $techSpec.outerWidth() + 'px'
});
},
function (e) {
e.preventDefault();
$techSpec.animate({
left : '0px'
});
}
);