Math.min.apply (Math,arr) This method is used to find the smallest value in an array, which puzzles me, and I don't know why the first parameter applied to the Math object is passed back in.
"JavaScript advanced Programming" said: in order to
Summary of JavaScript objects, javascript objects
Summary of Javascript objects:
JavaScript objects can be seen as unordered sets of attributes. Each attribute is a key-Value Pair and can be added or deleted.
All things in JavaScript are objects:
An HTML5canvas path connects a series of vertices by drawing commands. These vertices form a straight line or curve. The path can be used to draw various types of images on HTML5canvas: straight lines, circles, polygon, etc ....,.
An HTML5 canvas
Summary
For now, I just thought of three methods. If you think of other useful methods, You can also talk about them.Description
I. parseInt
1. Instance
(1 ). parseInt ("13 nash"); // 13 (2 ). parseInt ("") // NaN (3 ). parseInt ("0xA"
This article is really difficult to write, because there are numerous articles on the Internet.Coincidence is a few days ago to see the teacher Ruan an article of a sentence:"For me, blogging is primarily a knowledge management tool, followed by a
Definitions and usage
The random () method can return a random number between 0 ~ 1.
Grammar
Math.random ()
return value
A pseudo random number between 0.0 ~ 1.0.
Open node, enter terminal command line mode, enter Math.random ():
This article follows the reference type (top) of JavaScript advanced programming, and continues below:Date typeDate is a date class that can be used to get the date and time and the number of milliseconds for the specified date. The date class
First, take a look at an example
The following example comes from a foreign language, and I am simply reporting it here.
Parallax scrolling is not very popular now, then Chris Ruppel when its use background-attachment: fixed to achieve the
Apply, call
In JavaScript, call and apply are meant to change the context in which a function is run, in other words, to change the direction of this inside the function body.
One of the big features of JavaScript is that the function has the
The original link in the magic of JavaScript in the Apply, call, bindAlthough many online articles, mostly copy and paste, and obscure difficult to understand, I hope that through this article, can clearly improve the apply, call, bind understanding,
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.