JavaScript Data type:There are 5 different types of data in JavaScript:
String
Number
Boolean
Object
function
3 Types of objects:
Object
Date
Array
2 data types that do not contain any values:
Conversion functions:JS provides two conversion functions for parseint () and parsefloat (). The former converts the value into an integer, which converts the value into a floating-point number. Only these methods are called on the string type, and
1,eval () functionThis function is to get the string of arguments, and it as a JS to deal with, so there may be someone use this to sabotage (such as injecting JS script files, etc.), so the best way is to use as little as possible, or you can use
ECMA: European Association of Computer ManufacturersISO/IEC: International standardization and International Electrotechnical CommissionDOM Level (10*) Document Object model1:dom core (Map-based XML document) and Dom HTML (based on the DOM core)2:
1. JavaScript data types There are 6 data types in JavaScriptBoolean String number Undefined NullObjectThe object type contains an array (arrays) function (functions) and other general pairs.The number (Numbers) type can be an integer (intergers) or
Note: This article belongs to the personal summary, the knowledge point is not complete, the wrong place, also hope forgive me. (I will revise it in the future, correction)This book: the introduction of JS and the use of HTML in the skip. (Straight
1. Using "Use strict" on the top of the script or in the first line of the function will enable strict mode or execute in strict mode2. Define the variable that holds the object and initialize it to null3.null = = Underfined,is true;4.typeof Null,is
ToCharArray ToCharArray ()
converts this string to a new character array.
Return:
a newly assigned character array whose length is the length of this string, and the
Today saw a JS topic ["1","2","3"]. Map(parseint), the answer that emerges from the back of my mind is [all-in-one], but after seeing the right answer, I don't know why the answer would be [1,nan,nan ], read the explanation
There are three functions in JS that can convert non-numeric types to numeric types: number (), parseint (), parsefloat (). the first function, the transformation function number () , can be used for any data type, while the other two functions
JavaScript -- Date and Time
Today, I will review JS and prepare for the next project:
// JavaScript Document // The first part // creation Date object // var box = new Date (); // create a Date object // var box = new Date (Date. parse ('2014/1/12
JavaScript learning Notes: Data Types and javascript learning notes
I. Classification
Basic data types: undefined, null, string, Boolean, and number
Complex data type: object
Object Attributes are defined in the form of unordered names and value
Six Types of javascript data and special notes
This article mainly introduces six types of javascript data and special notes. For more information, see
Six common data types in js: String, Null, Number, Boolean, and Object.
1. Notes for
However, parseInt ("08", 10) can return 8.To clarify the differences between the two,See the difference between parseInt and Number written by others:ParseIntParses a string argument and returns an integer of the specified radix or base.Core
There are three main methodsConversion functions, forced type conversion, and weak type conversion using js variables.1. conversion functions:Js provides two conversion functions: parseInt () and parseFloat. The former converts the value to an
This is currently the world's shortest Javascript Method for Determining IE browsers from Russia! It has been tested in various versions of IE and other popular browsers. Although Microsoft has realized the Bug Based on IE, it has never been
JavaScript basicsI. Features of JavaScript
Browser scripting language, which can be mixed with HTML code
Superior Cross-platform performance and can be written on Windows.linux
Good security
Good compatibility
Two.
Today simply summed up some of the JS things, combing the whole system, each time the summary will have a different harvest;JS Summary Onefirst, "get the Element":1, through Id:var Obtn=document.getelementbyid (' btn1 ');var
JavaScript to deal with very numeric valuesNumber (): Any data type converted to numeric value;parseint (), parsefloat (): Converts a string into a numeric value;Conversion rules:Number ():1) If it is a Boolean value, True and false are converted to
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.