fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script src="http://cdn.static.fmpq.com/libs/jquery/3.0.0/jquery.min.js"></script> </head> <body> <div> <p id='#target'>一些文本</p> <span id='target'>一些文本</span> </div> <script> $(function () { $( "div" ).find( "#" + $.escapeSelector( "#target" )).css('color','red'); }) </script> </body> </html>
运行结果