Daily learning CSS3 variants and JS function pointers

Source: Internet
Author: User

1,transform deformation properties, including rotate (xxdeg) rotation, translate (x-axis px,y axis px) movement, scale (0.5,2) deformation (x-axis reduced by 0.5 times times, y-axis magnified twice times), skew (x-axis deg,y axis deg) stretched,

To extrude a Perspective view:

2,transtion transition properties to ensure smooth deformation.

function pointers:

function Fun () {
Return 5
}

var a=fun
var b=fun ()

The part of JS where we add the above code is called a function, which is an instance of a function reference type, so the function is an object. The object is stored in memory, and the function name is a pointer to the object.

var a = fun means copying a copy of the function name fun to the variable a, but this does not mean that the functions themselves have been copied.
Just like, Shanghai (corresponding function object) on the map has only one, but there are many signposts pointing to Shanghai (corresponding pointers), and you can continue to add (copy) countless road signs pointing to Shanghai, but Shanghai itself will not be copied.


If the function name is followed by parentheses, the code inside the function is called immediately (executed) (the code in the curly braces section).

In addition, function declarations and function expressions in the private scope of the wording of the function will also be added parentheses behind the body to call this function immediately, the main topic can see JS simulation block-level scope of knowledge.

Daily learning CSS3 variants and JS function pointers

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.