js
假设URL的地址是 http://localhost/test.html?player=shamohai
<script>
var add = top.location;//取得地址栏的URL
add = add.toString();
var showIndex = add.indexOf("?player=");//得到参数的位置
var showParam="";//需要得到的参数
if (playerIndex != -1) {
showParam= unescape(add.substring(playerIndex + 8, add.length));
}
</script>