Javascript examples for String Operation:String Remove
Remove duplicated scripts in an HTML head
<html> <head> <script src="https://code.jquery.com/jquery-2.0.3.js"></script> <script src="http://facebook.com"></script> <meta name="viewport" content="width=device-width"> </head> // ww w.j a va 2 s. co m <body> <script> $(document).ready(function(){ console.log($('script[src="http://java2s.com"]').length); }); </script> </body> </html>