Self-Test j correction questions., 2017.3.3 self-test j correction

Source: Internet
Author: User

Self-Test j correction questions., 2017.3.3 self-test j correction

 

Resolution: In jUery, the background color is red, green, and blue in sequence. The entire subject is changed. <dody> </body>. Click.

2.

Resolution: Operation element:

Html () obtains the HTML content or text content of the First Matching element. It not only obtains and sets the text content, but also sets the HTML content.

Text () obtains the text content of all elements.

Val () is used to obtain the attribute value of an element. It is mostly used to operate the <input> element of a form.

Resolution: show () and hide () of elements can be implemented through jquery objects, or the display attribute of dom objects.

 

Resolution: Obtain the title value of tag a. It can be obtained directly through attr ("attribute name.

 

Resolution: visible Selects all visible elements.

: Hidden Selects all hidden elements.

 

The method to change the element height.

The slideDown () element is displayed from top to bottom.

The slideUp () element is shortened from bottom to top to hidden.

Resolution: Set the transparency attribute to opacity with a decimal number and a value of 0 ~ 1. When it is set to 0, it is completely transparent. If it is set to 1, it is not transparent. If you use animate () to set multiple animation effects at the same time,

All values need to be wrapped.

Resolution: jquery moves the effect up and down with the scroll bar, from top to bottom.

Resolution: select a specific value for a given attribute, starting with "^". $ and ending.

Conclusion: The duration of the fadeout () fadeIn () fadeToggle () animation cannot be expressed in milliseconds or slow, normal, or fast.

Form submission triggers the onsubmit event. It is called before the form is submitted.

Conclusion: The length is 5 rather than subscript.

Summary:

The text () method can get the text content, and the val () method can get the value attribute value.

 

Conclusion: Option a hides the first image.

Option B is to hide all

C should be hide

Conclusion: The floating point number can be remainder in javaScript.

Conclusion: The if judgment Condition Statement in JavaScript can be used independently.

Conclusion: getHours () returns the hour of the Date object, and its value is (0 ~ 23 ),

The number of seconds for the returned object by getSeconds (). The value is (0 ~ 59 ).

Conclusion: ^ is the beginning. $ is the end. It is any character except for line breaks.

 

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.