页面URL带参数的问题
我有一个页面,中间有断代码
<script language="javascript">
function check(str)
{
document.timerform.mobile.value = str;
document.timerform.action = "sgipmtview.jsp";
document.timerform.submit();
return false;
}
</script>
然后在显示数据的时候,我设置了一个<a>,代码如下
<td align="center" width="400"><a href="#" onClick="return check('<%=Result[i][0]%>');" ><%=Result[i][2]%></a></td>
但是存在一个问题,就是当页面带了查询参数后,就无法正常运行了.
没带参数的<a>的值
http://XXX.XX.210.96/smplat/report/sgipmoview.jsp#
带参数后的<a>的值
http://202.103.69.210/smplat/report/sgipmoview.jsp?mypage=2&sp_id=null&mobile=0&sp_code=0&mo_stat=2&begin_year=2006&begin_month=09&begin_day=01&end_year=2006&end_month=09&end_day=01&#
这样就带来了一个问题,上面那个函数无法正常工作了.
请高手给我指点一下