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

WBOY
Release: 2016-06-24 11:50:00
Original
1656 people have browsed it

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

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


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


回复讨论(解决方案)

调用js来做吧

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

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

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

ajax.....

用两个ajax来同时传值

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!