SetInterval ()-interval specifies the number of milliseconds to execute the specified code continuously.
SetTimeout ()-executes the specified code after pausing the specified number of milliseconds
1.setInterval (): interval Specifies the
1. Get the kernel version of the browser used by the current userfunctionGetExplorer () {var browser = ""; varExplorer =window.navigator.userAgent; if(Explorer.indexof ("MSIE") >= 0) {//Ie10 and below varB_version =navigator.appversion;
First of all:Use an example to introduce a combination pattern that needs to be(1) There is a school with 2 classes (one class, two classes)(2) Each class is divided into 2 groups (one Class one group, one class two groups, the second class one
JavaScript objects are data that owns properties and methods.In JavaScript, almost all things are objects.An object is also a variable, but an object can have more than one value.For example:var person = {firstName: "John", LastName: "Doe", Age:50,
1. Height of Blue ball bounceBasketball from 10 meters high place falls, each bounce height is the original 0.3 times times, asked to bounce 10 times after the height of the basketball.2. The board put foodThe chessboard has 32 squares, the first
This article translates the JavaScript Tutorial playlist of up master Kudvenkat on YouTubeSOURCE Address here:https://www.youtube.com/watch?v=PMsVM7rjupU&list=PL6n9fhu94yhUA99nOsJkKXBqokT3MBK0bBasic loop form in javascript:WhileDo.. WhileForIn this
In a function where the arguments are functions: function A (function name) differs from function A (function name ()):1 // inside the function () is a function of grouping and executing immediately 2 /* * 3 * Function AutoPlay () {Auto
There are two different ways to create a new object:
Defining and creating an instance of an object
Use a function to define an object, and then create a new object instance
1. Defining and creating an instance of an objectvar
HTML DOM Event object reference manual AddEventListener () method : Adds an event handle to the specified element, and the added event handle does not overwrite an existing event handle. 1. Syntax:function, usecapture);Event: Types of events (such
Introduction to asynchronous Macrotask and Microtask in JavaScriptWhat is Macrotask? What is Microtask?In understanding what is Macrotask? Before we take a look at the event looping mechanism in JavaScript, let's look at the following code:
Css: Use of hover pseudo classes and csshover pseudo classes
: Hover usage, that is, the style settings made when the mouse pointer is moved into the elementExample 1
demo01
The above situation exists
The absoulte attribute of CSS and the cssabsoulte attributeFeatures:
AbsoulteAndFloatHas the same characteristics: Package, and destructiveAbsoulteAndFloatOptionalNot SupportedRelativeRestrictedAbsoulteLocation, behavior performance is not
CSS z-index attribute and cssz-index attributeStack context: 3D concept, indicating the position of an element on the Z axis
Layers can be nested and combined into a hierarchical ContextEach cascade context and sibling element are independent. When
A beating calendar or a beating calendarI. Introduction
Compile an active calendar with the following effects: year, month, day, week, hour, minute, and second:
Year, month, day, week, hour, minute, and second will change with the system timeIi.
Simple css animation and css Animation
In the past few days, the company needs to update a mobile web page, because the task is simple, it will be handed over to me as a newbie. The first time I came into contact with css, I learned it with html
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