Difference between getattribute and getparameter1. getattribute is the attribute set by setattribute in JSP.
2. What parameter gets is string; what attribute gets is object.
3. request. the data transmitted by the getparameter () method is
There are a lot of information on the Internet, but they are all chaotic. Record points are used as a reference. Difference between getattribute and getparameter 1. getattribute is the attribute set by setattribute in JSP.
2. What parameter gets is
1. getattribute is the attribute set by setattribute in JSP.2. What parameter gets is string; what attribute gets is object.3. request. the data transmitted by the getparameter () method is transmitted from the Web Client to the Web server,
Getattribute () method
● A document is a node tree.
● Nodes are divided into different types: Element nodes, attribute nodes, and text nodes.
● The getelementbyid () method returns an object that corresponds to a specific element node in the
GetAttribute () methodSo far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the getAttribute () method to query the values of its various
Request.getattribute (): Is the value of the variable set at request, with Request.setattribute ("name", "Your Own value"), to set the value,Request.getparameter (): Extract the parameters sent over such as: this pagehttp://community.csdn.net/Expert/
GetAttribute () method
So far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the getAttribute () method to query the values of its various
A document is a node tree.
Nodes are divided into different types: Element nodes, attribute nodes, and text nodes.
The getelementbyid () method returns an object that corresponds to a specific element node in the document.
The getelementsbytagname ()
Is aaa. style equivalent to aaa. getAttribute (style) in js? Is there any difference? I tested the same results in various browsers (ie 6 to chrome). I didn't find any difference? I know the difference. The second sentence below cannot be found in
The GetAttribute () method is a Function. It has only one parameter--the name of the property you intend to query, and the following describes its specific useGetAttribute () methodSo far, We've introduced two ways to retrieve specific element nodes:
Request. the data transmitted by the getParameter () method is transmitted from the Web Client to the Web server, representing the HTTP request data; request. the data transmitted by the setAttribute () and getAttribute () methods only exists in the
js:getattribute[Turn]A document is a tree of nodes.Nodes are divided into different types: element nodes, attribute nodes, text nodes, and so on.The getElementById () method returns an object that corresponds to a specific element node in the
GetAttribute () methodSo far, we've introduced two ways to retrieve specific element nodes: one is to use the getElementById () method, and the other is to use the getElementsByTagName () method. After finding that element, we can use the
in Python programming (http://www.maiziedu.com/course/python-px/, most programmers agree that there is little need to focus on the details of GetAttribute and GetAttr, and in general, when consuming our custom classes, we understand the structure of
Example of using the getAttribute method in js, jsgetattribute
GetAttribute () method
So far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the
(2) When the two Web Components are link relationships, the linked component obtains the request parameters through the GetParameter () method.(3) When a forwarding relationship is between two Web components, the forwarding target component shares
1. getAttribute is used to obtain the setAttribute in jsp? Specified attribute2. What parameter gets is string; what attribute gets is object.3. request. the data transmitted by the getParameter () method is transmitted from the Web client to the
Getparameter returns a string used to read the values in the submitted form. (page parameters and strings) such? Id = 123.The object returned by getattribute must be converted. You can use setattribute to set it to something that is flexible and can
For front-end users, they always need to deal with compatibility, CSS compatibility, and JS compatibility. Here I summarize the compatibility of getattribute () and setattribute () in different browsers and how to solve these problems:
1
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.