Take a look at the Reading Notes of the JavaScript authoritative guide (version 4. Javascript is a non-typed and interpreted language.
Case Sensitive
Html is case insensitive
Ignore space characters, tabs, and line breaks (except keywords, variables,
Global objects are the most special objects in ECMAScript, because they do not exist at all.
GlobalObject
Global objects are the most special objects in ECMAScript, because they do not exist at all. If you try to write the following code, you will
This occurs when debugging a piece of JS code today .. both Firefox IE7 and IE6 are normal... depressed, I searched for related information on the Internet. Generally, an error occurs when the specified tag is not fully loaded. This object is used ..
The scope of JavaScript variables is divided by function. to quickly understand its features, we use instances for demonstration. The scope of JavaScript variables is divided by function. to quickly understand its features, we use instances for
In the method declaration of JavaScript language, the type and number of parameters cannot be explicitly specified, so method overloading cannot be implemented, but we can use other methods to achieve the effect of overloading. In the JavaScript
In the previous article, we designed a method to describe function overloading in JavaScript. This method relies on a static class called Overload, now let's take a look at how to implement this static class.
Recognize text signatures
Let's review
In the previous article, we designed a chain call method for the asynchronous call framework to enhance the code readability of the asynchronous call queue. Now we will compile the code that implements this function.
Call entry
A chained call
We have implemented a simple asynchronous call framework, but there are still some shortcomings, that is, the asynchronous functions executed in sequence need to be declared in nested mode. In actual development, it is very common to execute a
When using js to write a webpage, if html and other content are all using document. write output, including & lt; html & gt;, & lt; meta, and other tags. When nested, the output content may be garbled. If all the pages are encoded as gb2312, in JS,
We used five articles to discuss how to compile a JavaScript asynchronous call framework (Question & amp; scenario, case design, code implementation, chain call, and chain implementation ), now, let's take a look at how to use it in various common
Today, my friend asked me about the scheduled advertisement. Some advertisements need to be controlled for a while before they can be displayed. The following is the specific code.
function strToDate (str, ext) {if (str = null | str = '') return;
Windows. parent is incompatible with Firefox when calling the parent framework! Original Code: (in ie, windows. parent is not run in Firefox)
The Code is as follows:
ScriptFunction oa_tool1 (){Window. parent. mm. rows = "20,200, 10 ,*";}Script
JQuery table operations include alternating display, dragging table rows, and selecting rows. For more information, see. JQuery is really convenient, simple code, but it can implement some good functions.
The Code is as follows:
JS does not provide the so-called class inheritance. It is said that this inheritance method should be added to 2.0, but it will certainly take N years for all browsers to achieve the 2.0 feature. JS does not provide the so-called class inheritance.
For the first time, JSON is used as the transmission object of the jquery asynchronous request. The result returned after the jquery request is a string or a json object. After the problem is solved, you can understand the meaning of the problem. In
You can use either of the following methods to close an event in a javascript capture window:
1. Use javascript to redefineWindow. onbeforeunload () event
Define a function in javascript.
Function window. onbeforeunload () {alert ("Close window ")
Firefox must be taken into account to obtain the event object. Generally, we obtain the event object as follows:
The Code is as follows:
Function getEvent (event ){Return event | window. event // IE: window. event}
If no parameter exists, you
It may be that my personal understanding is limited and I have always thought that it is difficult to display a slightly Dynamic Chart Only by html. However, after seeing jqPlot, my understanding has changed a lot, jqplpt-HTML-based chart display
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