It's a terrible thing to learn something new. For me, the biggest problem with mastering a new skill is that I don't know what I understand. In view of this, a plan to learn what you are interested in should be useful. The gist of this article is:
Many students have ignored the fact that JavaScript can also do object-oriented programming for quite a long time. On the one hand, the various page interactions that we have implemented in the introductory phase are very logical to be solved with
Order
Go on to the top two, this is the end of the article.
Blocks
? There is the code of {}, we wrap the line processing.
Bad
if (test)
return false;
Good
if (test) return false;
Good
if (test) {
return false;
}
Bad
function () {return false;}
Good
There are two ways to move a drop-down box in a traditional HTML page:1 directly hardcode the contents of the dropdown box into JavaScript in HTML, invoking JavaScript function loops to write to the Drop-down box. This method does not apply to
JS cross-domainJavaScript is not allowed to call objects on other pages across domains for security reasons.
What is cross domain?
The simple understanding is because the JavaScript homologous policy restriction, the a.com domain name JS cannot
Date and Time objects1. Introduce Date object that is the object of the action date and time. A Date object can operate on dates and times only through methods.2. Constructor function2.1 New Date (): Returns the current local date and time
JS variable Promotion
For most JS developers, variable elevation can be a very common problem, but many people may not be particularly aware of it. So here, I'd like to say a few words.
Let's start with a simple example:
a = 2;var
In this Post we is providing best jQuery PDF Viewer Plugin & tutorial with examples. Due to popularity of online document viewer like Google Docs some JavaScript developers develop a good and useful plugins To view PDF file on online PDF viewer.
Read Catalogue
One: Understanding the constructor prototype (prototype) mechanism
Second: Understanding the concept of prototype domain chain
Three: Understanding the prototype inheritance mechanism
IV: Understanding the use of
One- phase object inheritance mechanismToday is nothing to do, to understand the three major characteristics of object-oriented inheritance, the past learning C + + and C # are Orthodox object-oriented languageWords, the study time also did not have
JS obtains time-related functions and converts timestamp to time and date. js obtains
Timestamp and date conversion are common operations. The following describes how to implement mutual conversion through code examples.
Before learning this article,
Deep Learning of JavaScript objects and deep learning of javascript
In JavaScript, all objects except the five primitive types (numbers, strings, Boolean values, null, and undefined) are objects. Therefore, I don't know how to continue learning
Google Maps API map application example sharing, mapsapi
Effect (tested in new Firefox version ):
Code:
Google Map
Google Maps JavaScript API v3 (reference): https://developers.google.com/maps/documentation/javascript/basics
Baidu map API
When Netscape first developed the Mozilla browser, it was wise to decide to support W3C standards. Therefore, the legacy code of Mozilla, Netscape Navigator 4.x, and Microsoft Internet Explorer is not fully backward compatible.. Internet Explorer 4
Document. all is a proprietary attribute of IE 4.0 and later versions. It is a group of all objects in the current document, including not only object objects visible on the page, but also invisible objects, for example, html annotations. In the
This article describes how to convert a js timestamp to a date format. If you are interested, refer to the Unix timestamp: Unix timestamp ), or Unix time or POSIX time is a time representation, it is defined as the total number of seconds from GMT,
In this chapter, we also use Node. js creates a simple Web server. in the previous chapter, we introduced Node. js, a JavaScript Server Platform for Internet services, and Node. the js runtime environment has been set up and verified by two
Converts a json string to a json object. During data transmission, json is transmitted in the form of text, that is, strings, while JS operates on JSON objects. Therefore, the conversion between JSON objects and JSON strings is critical, for example:
This article describes how to operate cookies in JavaScript, this article describes what are cookies, basic Cookie knowledge, common Cookie problems, two methods for clearing cookies, basic Cookie usage, and advanced cookie usage. For more
Npm is a module dependency management tool for Node. js. As a tool used by developers, it mainly solves problems encountered during Node. js development. Like RubyGems's importance to Ruby developers and Maven for Java developers, npm's importance
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