if($(".spnTotal").is(":visible")==false) { alert('隐藏'); } else { alert('显示'); } 转载于:https://www.cnblogs.com/hellman/p/7229625.html