Js is not a object-oriented language and does not provide support for classes. Therefore, we cannot use class to define classes as in traditional languages, however, we can use js closures to implement js classes. We can encapsulate a simple Shape
You can use Aptana to debug javascript. Generally, you can use firefox + firebug to debug javascript. The premise is to install the Firebug plug-ins and the aptanadebugger plug-ins. They are as
Yesterday was the last day of the warm-up class. to test whether we can be promoted to the job class, we conducted the warm-up class Completion examination. In addition, Mr. Bi explained the reflection mechanism for us. Although reflection may not
In fact, there are two spaces, one ASCII number is 32, and the other is the ASCII number is 160. The latter is unicode encoding. In the past, I wrote a post on ie6 to accurately determine the space. In other words, IE6 cannot correctly determine the
During the system test today, I originally wrote a Dynamically Loaded tree menu using Jquery and found that data cannot be loaded under IE7 (using $ of jquery1.3.2. ajax method), the Internet queries that the execution of ajax in IE7 was declared
About JS printing! Online collection + self-Summary. For more information, see. Window. print () is used for general printing.
However, this method is usually used for selective printing. Therefore, the following method is called:
The Code is as
Jquery Operation Ticket, check box, drop-down list to implement Code. For more information, see. 1. Select All check boxes: Actually, it is the use of the Jquery selector. Click here to view the Jquery selector.
Html code:
The Code is as follows:
As the saying goes, do it yourself. Use Firebug to find the subtitle file address, download it, and see that it is in JSON format. Then, you can directly use JS output strings to convert it to srt Subtitles. Previously, I watched the TED video about
Html lock page (js mask layer pops up div effect). For more information, see.
The Code is as follows:
UntitledDocument
Script
Function createIframe (){
// Mask Layer
Var newMask = document. createElement ("p ");
Ajax + Json cascading menu implementation code. For more information, see. The first drop-down box:
The Code is as follows:
// The value in the first drop-down box
The second drop-down box:
The Code is as follows:
// Three or more menus can
Fully in line with conservation of energy, the JavaScript spring vibrator of the Hulk theorem (ultra-simplified version, beyond the first version !) The last version used physical thoughts. This time it used mathematical ideas. If you have
Javascript converts lowercase letters in turn to uppercase letters. Strictly speaking, it is not a case-insensitive conversion program. It mainly converts the text to lowercase letters in order. Someone may need to use it.
ripplespeed= 300;
JQuery is an excellent Javascript class library, so we once hated JavaScript and liked JavaScript more and more. What's better is its many plug-ins. in the past, we had to write a special effect for the client. We had to write JavaScript for a day
In many cases, we need to display tens of thousands of data records in the grid instead of just a few or dozens. If a large amount of data is displayed on a single page, you can imagine the user experience. Therefore, almost all grid controls now
Image switching is very popular, and text switching is also very practical. In addition, CSS can be used with JavaScript to avoid writing text into JavaScript code when pure JavaScript is implemented, which is inconvenient to modify. This is
This section mainly introduces document. onreadystatechange is generally used to monitor user input in real time over the past two days. It is being optimized for a project in the department, one of them is to use the p method to implement all alert
To understand the functional programming principles in JavaScript, you must understand two knowledge points.
1. Calls of functions and methods in JavaScript
In JavaScript, there are two methods to call functions. The general method is to put
In JavaScript, inheritance can be realized through three methods: prototype chain inheritance: inheritance between objects using the apply and call methods.
1. prototype chain inheritanceIn terms of prototype chain inheritance, JavaScript is similar
In the previous series, we used Ext. fly to obtain an Element object. In fact, Ext. fly is short for Ext. Element. fly. A similar method also has Ext. get, which is short for Ext. Element. get. Both methods can use the Dom Element or Dom Element id
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