Maison > Article > développement back-end > 传参过不去!
贴出你的代码!
<?php echo "<a name='hf' href='#' questionid={$v['id']}>回复</a>"; ?>
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; }
贴出你的代码!
徐版主clickhf() 函数在哪调用了?