<a name='hf' href='?questionid=".$v['id']."'>

解决方案 »

  1.   

    他是href='#' questionid='".$v['id']."'
      

  2.   

    传参的方式不一样吧。他这么写有的确实能传过去那估计他有其他的js对这个链接进行操作的吧 ,你找找看 单凭<a name='hf' href='#' questionid='".$v['id']."'>这样是不可能的 因为href都是空的
      

  3.   

    传参的方式不一样吧。他这么写有的确实能传过去那估计他有其他的js对这个链接进行操作的吧 ,你找找看 单凭<a name='hf' href='#' questionid='".$v['id']."'>这样是不可能的 因为href都是空的他的那个js也是网上下的看着太费劲了!看看论坛上有人用过吗/?
      

  4.   

    <?php 
    echo "<a name='hf' href='#' questionid={$v['id']}>回复</a>";
    ?>  
    js的
    function clickhf(){
    var page = "<?php echo $page;?>";
    //var questiontype = document.getElementsByName('questiontype')[0].value;
    //var status = document.getElementsByName('status')[0].value;
    //var username = document.getElementsByName("username")[0].value;
    var questionid = this.questionid;
    //alert('rtextquestion.php?page='+page+'&questionid='+questionid);
    //alert('rquestion.php?page='+page+'&questiontype='+questiontype+'&status='+status+'&username='+username+'&questionid='+questionid);
    window.location.href='rtextquestion.php?page='+page+'&questionid='+questionid;
    }
      

  5.   

    clickhf() 函数在哪调用了?