<script language=JavaScript>
var posstrparaparastrtempstr;
tempstr=;
str = windowlocationhref;
pos = strindexOf(?)
parastr = strsubstring(pos+);
documentwrite(<br>文件路径+str);
if (pos>){
documentwrite(<br>所有参数+parastr);
}
else
{
documentwrite (无参数);
}
if (strindexOf(&)>){
para = parastrsplit(&);
for(i=;i<paralength;i++)
{
tempstr = para[i];
pos = tempstrindexOf(=);
//documentwrite (tempstrsubstring(pos));
documentwrite (<br>参数+i+:+tempstrsubstring(pos));
documentwrite (等于:+tempstrsubstring(pos+));
}
}
</script>