找到了一个,先看看
<script language="JavaScript">
var pos,str,para,parastr,tempstr1;
tempstr="";
str = window.location.href;
pos = str.indexOf("?")
parastr = str.substring(pos+1);
document.write("<br>文件路径:"+str);
if (pos>0){
 document.write("<br>所有参数:"+parastr);
 }
else 
 {
 document.write ("无参数");
 }
if (str.indexOf("&")>0){
 para = parastr.split("&");
 for(i=0;i<para.length;i++)
 {
 tempstr1 = para[i];
 
 pos = tempstr1.indexOf("=");
 //document.write (tempstr1.substring(0,pos));
 document.write ("<br>参数"+i+":"+tempstr1.substring(0,pos));
 document.write ("等于:"+tempstr1.substring(pos+1));
 }
 }
</script>

解决方案 »

  1.   

    对呀,你看你的代码你就很明白了吗?即使在url里面写的是html也是在页面上有javascript来解析你的地址,直接去处参数去处理的呀。
    所以,至少在目前,纯html,xml(不含任何其他脚本和程序)是不能接受参数的。因为这些格式的文件仅仅是用来存储信息和现实信息,本身根本不是编程语言,没有逻辑判断能力,如果接受了参数怎么办?
      

  2.   

    可以。任何文件都可以带参数的。
    如果你用exchange server就知道了
      

  3.   

    同意zhenwang(自由梦想) 老兄的。
      

  4.   

    exchange server 是什么?