The transfer of parameters between interfaces (JSP or JS) in a Web project __c#

Source: Internet
Author: User

In a Web project, pass parameters to another JS file from a JS file

1, first JS file to add the parameters to the second JSP URL behind, this way the parameters to the second JSP, such as the following code:



2, in the second JSP through the following code to get parameters:



3, in the second JSP through the following code to pass parameters into their own use of JS file:



4, such a child in the second JS file directly with the corresponding parameters can be, note that the name of the parameter must be the same as the name passed over.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.