Tip: Get a method for the parameters that are submitted in the current view (JSP page) URL in the management bean.This method is applicable to the non-boundary task flow and the right side of the task flow, when entering the Task Flow page
Sometimes we need to get link parameters on the client, a common way is to treat the link as a string, decompose it in the linked format, and get the corresponding parameter value. This paper gives a concrete implementation of this process.Of course,
That's the way things are. This afternoon I was brushing the joy of the shell brush, suddenly demand came down. It! On This! You! Under To! The Customers say we need to open a new window to make a fuzzy query, and then select a query result to
JQ Value Method:
jquery itself does not have the method to get the URL parameters, but there are already plug-ins, you can get the parameters such as URL directly
Plug-in Connection home: Https://github.com/allmarkedup/jQuery-URL-Parser
Download
URL parameters are written in two different ways:
1.
var rank
= document.getElementById ("Rank"). Value;
var Parentcolumnwindow = window.open (' LiferayWindowState.POP_UP.toString ()%> ">
&rank= ' +rank+ '
',
' ParentColumn ', '
As stated in the title, this article focuses on the built-in objects in Thymeleaf (list parsing, date formatting, number formatting, and so on), defining variables, getting URL parameters, and customizing attributes in page labels.
If you are not
Copy Code code as follows:
function request (Strparame) {
var args = new Object ();
var query = location.search.substring (1);
var pairs = Query.split ("&"); Break at Ampersand
for (var i = 0; i var pos = pairs[i].indexof (' = ');
if
jquery gets the URL parameter and turns the code, first constructs a regular expression object containing the target parameter, matches the target parameter and returns the parameter value
The code is as follows:
Test
Whether front-end development or background design, many times developers need to get information about the current or target URLs. This existing built-in object attribute can be invoked directly (here is the reference code to get the current page)
Gets an array of arguments for the address barfunction Geturlparams () {
var search = Window.location.search;
Write Data dictionary
var Tmparray = search.substr (1, search.length). Split ("&");
var paramsarray = new Array;
if (Tmparray!= null) {
for
/** This function parses ampersand-separated name=value argument pairs from* The query string of the URL. It stores the Name=value pairs in* Properties of an object and returns that object. Use it as this:** var args = Getargs (); Parse args from
You may be very common to a query JSP page, this JSP page is very common layout is a form above, put some query conditions; The following grid form, place the query results gird.
This is the main feature of the grid page when the corresponding form
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.