17
如何检查URL是否包含给定的字符串?
我该怎么做: <script type="text/javascript"> $(document).ready(function () { if(window.location.contains("franky")) // This doesn't work, any suggestions? { alert("your url contains the name franky"); } }); </script>
361
javascript
jquery
url