夺命雷公狗jquery---5可见选择器
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/jquery.js"></script> <script> window.onload = function(){ document.getElementById('btnok').onclick = function(){ //1.显示所有异常元素 //$('div:hidden').show(3000); //2.隐藏所有可见元素 $('div:visible').hide(3000); } } </script> </head> <body> <input type="button" id="btnok" value="匹配"> <hr> <div ></div> <div ></div> </body> </html>