+ -
当前位置:首页 → 问答吧 → 随便送分。最简单的问题

随便送分。最简单的问题

时间:2011-08-23

来源:互联网

各位大哥我有写错吗?

function goToAddTkx(solution_ID,stopId)
{

document.forms[1].action="/insertTkxAction?solution_ID="+solution_ID+"?stopId="+stopId;
document.forms[1].submit();
}


网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
时间戳: Tue, 23 Aug 2011 02:19:24 UTC


消息: 对象不支持此属性或方法
行: 33
字符: 6
代码: 0
URI: http://127.0.0.1:8080/portal/findTkxListAction.do?action=filter

作者: cw329103272   发布时间: 2011-08-23

document.forms[1].action="/insertTkxAction?solution_ID="+solution_ID+"?stopId="+stopId;

改问&
有几个form,form[0]吧

作者: softroad   发布时间: 2011-08-23

第二个表单阿。

作者: cw329103272   发布时间: 2011-08-23

除了1楼看出来,我不知道哪里错了

作者: nodream521   发布时间: 2011-08-23

直接指定form的名称嘛。

作者: sxb372435741   发布时间: 2011-08-23

stopId前面不要?

作者: LeeHomWong   发布时间: 2011-08-23

他对象不支持此属性或方法, 有点费解。 我查了下源码 就ACTION那行。 我可以直接点出来。

作者: cw329103272   发布时间: 2011-08-23

document.forms[1].action="/insertTkxAction?solution_ID="+solution_ID+"&&stopId="+stopId";
不知道这样对否

作者: sweat89   发布时间: 2011-08-23

热门下载

更多