function book(a)
{  
   location='Book.aspx?htlcd=a';
}a是一个参数,值类似:01   02   03  等我现在要把a作为一个参数跳转页面,请问怎么写才是正确的呢?因为我这个写法是错误的~~转过的时候,叶面就是Book.aspx?htlcd=a

解决方案 »

  1.   

    location='Book.aspx?htlcd="+a+"';
      

  2.   

    楼上的不对呀,跳转过去的页面是Book.aspx?htlcd="+a+"
      

  3.   

    location='Book.aspx?htlcd='"+a+"''还是错的
      

  4.   

    我穿过来的时候,是这样的        imgbut.Attributes.Add("onclick", "book('"+a+"');return false;");
    a是一个值,不是一个对象
    大家再帮我看看,我一点Js语法都不懂啊555
      

  5.   

    function book(a)
    {  
       location='Book.aspx?htlcd=' + a;
    }
      

  6.   

    呼呼~~~~amandag(高歌)太谢谢你了,你来这个帖子一下吧http://community.csdn.net/Expert/topic/5487/5487933.xml?temp=.3790247说句话,哈哈