Inside JavaScript, all numbers are stored as 64-bit floating-point number , even if the integer is the same. (integers are also stored in the form of 64 floating-point numbers)So, 1+1.0=2; and 1===1.0 'sFloating-point numbers are not exact values,
The Window object is the core of the BOM, and the Window object refers to the current browser window!html>head>meta http-equiv="Content-type" Content="text/html; Charset=utf-8 ">title>Window objecttitle>script type="Text/javascript"> function mysty(
Eighth Chapter functionFunctions are a very important part of JavaScript, and you can easily read other people's Code by understanding this section, and you'll be familiar with some of the less common code notation.Control the length of the article
Global objectsThe properties of the global object can be used directly.When the JavaScript interpreter starts or any web browser loads a new page, it creates a new global object and gives it a defined set of initial properties:
In JavaScript, the most reliable way to determine what kind of built-in type an object's value belongs to is through the Object.prototype.toString method.var arr = [];console.log (Object.prototype.toString.call (arr)) //"[Object Array]"This article
JavaScript is more casual than other programming languages, so the JavaScript code is filled with all kinds of wonderful writing, sometimes mirrors;Of course, the ability to understand the various types of writing is also a further understanding of
1. Use the parameters inside the ToString () to achieve a quick conversion between the various binaries:var n = 17;binary_string = n.toString(2);//->二进制"10001"octal_tring = n.toString(8);//->八进制"021"hex_string =
//all content after a double slash is a comment//Read the notes here: they explain the JavaScript code.//A variable is a symbolic name that represents a value//variables are declared through the var keywordvarX//declare a variable x//value can be
Classification of objects and built-in math objectsI. Classification of objects1. Built-in objectsGlobalMath2. Local objectsArrayNumberStringBooleanFunctionRegexp3. Host ObjectsDomBomSecond, the Math objectFormat: Math. Method (Parameter)1. Take the
VarThe following methods are commonly used in the conversion of such data to Chinese issues.1. Eval parsing or new Function ("' + str + ')" ()// "I am a Unicode encoding"2. Unescape parsing// "I am a Unicode encoding"Unicode Mini-Encyclopedia:In the
Determines whether an object is an "empty object" in JavaScriptThe "Empty object" in this case is similar to the following: {} and New Object (). the specific code implementation and principles are as follows:// so-called"Empty Object", which does
Javascript usage tips and js usage tips
1 What if the browser does not support JavaScript?
A. Why does the browser not support it? Most browsers have the function of disabling scripts, such as chrome.
B. When Javascript is disabled, make sure that
This and javascriptthis in JavaScript
The topic here is this. This itself was originally very simple and always pointed to the current instance of the class. this cannot be assigned a value. This premise is that this cannot be separated from classes/
JQuery implements mouse-over-click event sound effect audition, while jquery slides over
Let's take a look.
As follows:
Html code:
eventType: HOVER! CLICK!
Jquery clothes color selection plug-in effect code sharing, jquery plug-in
This article describes the effects of the jquery clothes color selection plug-in. Share it with you for your reference. The details are as follows:This is a jquery-based code
Jquery achieves customizable height gallery effects with thumbnails (5 types), jquery can be customized
This article describes the effects of jquery highly customizable galleries. Share it with you for your reference. The details are as follows:This
Make Your webpage compatible with FireFox and IE, And the webpage compatible with firefoxie
CSS compatibility highlights: DOCTYPE affects CSS ProcessingFireFox: When div is set to margin-left and margin-right is set to auto, it is already centered.
Javascript variable naming convention scope of VariablesWhen variables were small, we learned this application: X + 1 = 2; Q: What is X equal? The answer is 1 by the way. It's very clever. We call this X an unknown number or a variable is actually a
JavaScript calculates the day of a week, and the day of a week in javascript.
This article describes how JavaScript calculates the day of a week. Share it with you for your reference. The details are as follows:
JavaScript calculates the day of the
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