JSON (Javescript Object Notation) is a simple data format that is lighter than XML. JSON is a native JavaScript format, which means that working with JSON data in JavaScript does not require any special APIs or toolkits.The rules of JSON are simple:
Inheritance is one of the most talked about concepts in OO language. Many OO languages support two ways of inheriting: interface inheritance and implementation inheritance. Interface inheritance inherits only the method signature, while implementing
Object-oriented (object-oriented, OO) languages have a sign that they all have the concept of a class, and that a class can create any number of objects with the same properties and methods. There is no class concept in ECMAScript, so we can use
Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return TRUE if any value appears at least twice in the array, and it should return FALSE if every ele ment is distinct.https://leetcode.com/
1. General functionsJavaScript general functions include the following 9 functions:(1) Alert function: Displays a warning dialog box, including an OK button.(2) Confirm function: Displays a confirmation dialog box, including OK, Cancel button.(3)
these days and learned a lot of the original knowledge, in the weekend summed up some JavaScript library-lodash (Array) of the content, I hope in the future learning from time to review and update themselves. The lodash-JavaScript Tool Library is
Type checking of variables // Detection Type var str = "Hello world"; if (typeof str== "string") {// use typeof to determine an example of an object type } if (str.constructor==string) { // use
definition of an array in JavaScript
An array is a special object that is used to indicate that the index of an offset is the property of the object, and the index can be an integer. These numeric indexes are internally converted to string
1. XHTML-compatible methods:2. Document mode:IE5.5 introduced, initially contains 2 kinds: promiscuous and standard mode, after IE proposed quasi-standard mode; the document does not begin to declare the document type, and the browser turns on
JS-Examples of custom scroll bars
The first thing to do is: how to implement a custom scroll bar
Main steps:
1. Define two divs, one small and one small, so that the small divs can scroll on the large div.
2. Use the drag-and-drop principle to
JS motion-zoom in and out an object (from the center)
Let's take a look at the following results:
Key points:
1. Convert the float location of css to the absolute location of js.
2. Zoom in and out objects from the center
Main steps:
1. First,
Use @ media to implement several key resolutions in web page self-adaptation, and @ media
It is often difficult to adjust the layout of devices with different resolutions or window sizes. You can use @ media screen to adapt the webpage layout, but
JavaScript and JQuery code sharing for getting the mouse pointer coordinates, jquery mouse pointer
jquery obtains the coordinates of the mouse pointer test the mouse position (jquery function processing) test the mouse position (Common
Problems encountered when using jquery. validate
This article mainly introduces jquery. A summary of the solutions to the problems encountered during the use of the validate is really an old saying, the meeting is not difficult, it is not difficult,
The most detailed JavaScript event User Guide in history (1)
Event stream
Event streams describe the sequence of events received from the page. IE and Netscape propose an almost identical concept of event streams. IE event streams are event
JQuery implements a summary of mandatory cookie expiration Methods
This article describes in detail how jquery enforces cookie invalidation. If you need it, please refer to it and hope to help you.
Method 1:
?
1 2 3
Var date =
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