$("#id").is(‘:visible‘);显示为true
$("#id").is(‘:hidden‘);隐藏为true
JQuery判断一个元素是否显示,隐藏
原文:https://www.cnblogs.com/yangyuzhuo/p/9329138.html