JS检测URL地址后面有没有参数
2023-4-23 乱云飞
<script language="javascript">//如果有参数显示参数,没有参数显示NULL str=location.search.substring(1,location.search.length); if (str != '') {document.write("<font color=#ffffff><h1>"+str+"</h1></font>");} else {document.write("<font color=#ffffff><h1>NULL</h1></font>");} </script>本文链接:http://80c.cc/ez/647.html
发表评论: