Home  >  Article  >  Web Front-end  >  <a href>如何向两个action同时传一个值?_html/css_WEB-ITnose

<a href>如何向两个action同时传一个值?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:001650browse

<a href = "GetBasForm.action?formId=${formId}></a>

<a href = "BasForm.action?formId=${formId}></a>


如何实现点击它,同时向两个action传值呢?(值是相同的值~)


回复讨论(解决方案)

调用js来做吧

<td><a href = javascript:user(${formId})>姓名</a></td> 

function user(formId) {        ???//这里怎么写?}

function user(formId) {
        window.open('BasForm.action?formId='+formId);
location='GetBasForm.action?formId='+formId;
}

ajax.....

用两个ajax来同时传值

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn