我需要帮助,我一直在努力让它工作......:
btnMenu.on('click', function(e) {
var $this = $(this);
$this.addClass('selected');
if(menu.is(':visible')) {
alert('visible'); // This works
$this.removeClass('selected'); // This doesnt work in safari mobile but works everywhere else.
}
menu.stop().slideToggle(500, 'easeInOutQuint');
e.preventDefault();
});
谢谢