jquery通过visible来判断标签是否显示或隐藏 if($(".spnTotal").is(":visible")==false) { alert('隐藏'); } else { alert('显示'); }