fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("a[target!='_blank']").hide(); }); }); </script> </head> <body> <h2>这是标题</h2> <p>这是一个段落。</p> <p>这是另外一个段落。</p> <p><a href="http://www.fmpq.com/html/" target="_blank">HTML 教程</a></p> <p><a href="http://www.fmpq.com/css/">CSS 教程</a></p> <button>点我</button> </body> </html>
运行结果