帮我看看代码哪里出问题了
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title></title> <link rel="stylesheet" href="imooc.css" type="text/css"> <script src="https://www.imooc.com/static/lib/jquery/1.9.1/jquery.js"></script> </head> <body> <h2>特殊选择器this</h2> <p id="test1">点击测试:通过原生DOM处理</p> <p id="test2">点击测试:通过原生jQuery处理</p> <script type="text/javascript"> var p1 = document.getElementById('test1'); p1.addEventListener('click',function(){ this.style.color = "red"; },false); </script> <script type="text/javascript"> $('#test2').click(function(){ $(this).css('color','blue'); }); </script> </body> </html>
颜色没有改变啊???