This article mainly introduces jQuery's function of passing parameters only through the get method at the front end through the control node. The example shows how to use jQuery to operate nodes and how to control the parameter passing through the get method at the front end, it has some reference value. if you need it, you can refer to the example in this article to describe how jQuery uses control nodes to transmit parameters only through the get method at the front end. Share it with you for your reference. The specific analysis is as follows:
This is also the content of html dom. The core of front-end scripting languages such as javascript and jquery is to control each node and add, delete, modify, and query each node, in this way, javascript, jquery, and other front-end scripts can be used to write beautiful things.
I have already introduced the javascript control node in the previous [examples of adding, deleting, modifying, and querying and using JavaScript for webpage nodes]. now I use jquery, an advanced javascript scripting language, in addition, jquery is used to transmit parameters between different webpages. parameters are transmitted only through the get method on the foreground and mounted to the server without jsp and asp, write requests and other server languages to obtain parameters.
I. basic objectives
The webpage contains a span node that exists under the Black p-red p-blue p. once you click it, obtain the id of the above node respectively.
Click the Add button to add a hyperlink node. each hyperlink contains the Chinese parameter Hello 1, Hello 2, Hello 3 ......, The scrolling entries automatically follow the increase of the node and are passed to jqrec.html. in this example, the jqrec.html page can obtain this Chinese parameter.
Click the clear button to clear all nodes under ul.
II. Production process
The full jqrec.html code is as follows. the Function used involves analyzing the regular expression of the url address. The actual code is only, $ ("# rec"). text (unescape (getUrlParam ("text ")));
The code is as follows:
Jqrec