It's embarrassing to say that I've been doing it for eight years, but I've never learned to learn JavaScript from the basics, and I've been thinking about how much the connection with Java is.I'm really ashamed of myself. It's time to start today
----------------------------------------------1. Request dataThere are 5 commonly used techniques for requesting data from the server: Xmlhttprequest,dynamic script tag insertion (dynamic script tag insertion), Iframes,comet,multiparty XHR
Closures (closure) are a difficult and unique feature of the JavaScript language, and many advanced applications rely on closures.Here are some of my understanding of closures.Note: Some of the content is reference to the information on the Internet.
Document.body.clientWidth//Web page visible area widthDocument.body.clientHeight//Web page visible area heightDocument.body.offsetWidth//Web page visible area includes the width of the edgeDocument.body.offsetHeight//Web space area includes the
Assigning an initial value to a parameterThere is no overloaded concept in JavaScript, but the parameters of the functions in JavaScript are optional, and if a parameter is written less, it will be replaced by undefined. egfunction Add (A, b)
PrefaceToday, JavaScript has become the core of Web page editing. Especially in the past few years, the Internet has witnessed the emergence of a large number of JS libraries in the areas of spa development, graphics processing, and interaction.If
Thorough understanding of JavaScript prototype inheritanceBefore writing an article on the topic of JavaScript inheritance, this article as a reading note, analysis is not deep enough.This article attempts to further consider and strive for a
The topic is as follows: Please write out the following code 2 times alert output what results separately?My answer is: 1.undefined 2.undefined. Then leader let's think about the answer to the question. My analysis of the topic: 1. Declare a and
Introduction to the use of the substring () method in JavaScript, javascriptsubstring
This method returns a subset of a String object.Syntax
string.substring(indexA, [indexB])
The following is the detailed information about the parameters:
IndexA:
The usage of the charCodeAt () method in javasacripat, javacharcodeat
This method returns a number indicating the Unicode value of the character at the given index.
Unicode code points range: 0 to 1114111. The first 128 Unicode vertices are directly
Javascript + html5: canvas: The method for drawing the empty font text of a volume,
This document describes how to use JavaScript + html5 to draw empty text in the canvas. Share it with you for your reference. The specific implementation method is
JavaScript converts a Date to a string using Date-Mask
This example describes how JavaScript converts a Date to a string using Date-Mask. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5
How to draw a circular pattern using canvas using js + html5
This article describes how to use JavaScript + html5 to draw a circular canvas. Share it with you for your reference. The specific implementation method is as follows:
?
1 2
Js variable scope Problems
During job interviews, we often encounter the following questions:
Var a = "Hello"; function B () {alert (a); var a = "World"; alert (a) ;} B ();
The correct running result is: undefined, world
Why is this result?
DOM node-JS Summary
DOM node-JS Summary
Three types of nodes are available: attribute nodes, element nodes, and text nodes.
HTML content:
Test Div
SkewEnd JavaScript content:
(1) attribute nodes
1. parent node:
Window. onload = function ()
Use javascript to set, retrieve, and delete cookies. Use javascriptcookie.
This example describes how to set, retrieve, and delete cookies in javascript. Share it with you for your reference. The specific implementation method is as follows:
/** Set
Meteor node. js
Note the following three methods:
var exec = Npm.require('child_process').exec;var fs =Npm.require('fs');
1. The original file is in the private directory, and the Meteor Assets are used to read the content, and the node. js
JQuery implements text expansion and contraction Effects
There is only one small area on the webpage, but the descriptive text is very long. The following script displays the long text.
When you click expand, the text is expanded, and the text is
Usage of the for Loop in JavaScript
This article mainly introduces how to use the for Loop in JavaScript. It is the basic knowledge in JS learning. for more information, see
As we can see, the while loop has different variants. This chapter
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