Whether you're a new JavaScript novice or a seasoned developer, the tools you use directly affect your productivity. The open source movement makes it less expensive to have a powerful tool, and you don't actually have to pay for anything. Here's a
JavaScript, the world's most popular programming language, has been labeled as a nightmare for Web development designers, and while the real nightmare is the DOM API, the scripting language that has been exploited by a large number of developers and
Anonymous functions can effectively control the scope of variables and construct closures (Closure) to prevent pollution of global variables. In JavaScript, there are several ways to write anonymous functions:
Error mode: syntax error warning
Because of the flexibility of JavaScript, you can allow everyone to write code according to their own habits. There are functional programming methods, and there are now more extensive object literals. Due to the appearance of object-oriented,
var ClassA = function () {
THIS.PROP1 = 1;
}
CLASSA.PROTOTYPE.FUNC1 = function () {
var that = this,
VAR1 = 2;
function A () {
return function () {
alert (VAR1);
alert (THIS.PROP1);
}.apply (that);
};
A ();
The following code, do you know what the error is:
var g_bar = "Bar";
function foo (container, config) {
var container = container document,
name = Config.name "John Doe",
Islive = Config.islive true;
var G_bar = G_bar "";
if (G_foo) {/
* your
Write any programming code, different developers will have different views. But the reference is always good, the following is from the Javascript Toolbox released 14 best JS Code writing techniques , sofish translation (1,2).
1. Always use ' var '
First, the use of global variables
This is the simplest way, such as Google Adsense:
The disadvantage is that global variables are introduced. There are two variations of the way in which files are introduced:
Variant 1: document.write output
JavaScript Entry code collation, for the Java script is not familiar to the master only one step away from the person.
JS Getting Started code 2009/04/21 13:59JS Entry Code
Fit to read: Don't know anything about Java Script ~ One step away from
js| Variable | access
Each language has the concept of a variable, which is an element used to store information. For example, the following function:
1function Student (Name,age,from)2{3 this.name = name;4 This.age = age;5 This.from = from;6 this.
These two days with virtual machine installation system, ready to use virtual machine to separate development environment and database, the idea is as follows:1. Development environment for host2.Guest is a database server, each server is a
String
I. OverviewStrings are almost ubiquitous in JavaScript, and when you're dealing with user input data, when you're reading or setting the properties of a DOM object, there's certainly more to it when you're manipulating cookies .... The core
Skill
This is a blog about JavaScript, which I saw on the clang. The author introduced quite comprehensive, so reprinted to let interested friends to see. Oh ~ ~ ~ ~
There are times when you are proficient in a language, but it turns out that
The js| variable JSP expressions and the code in Scriptlets provide 8 types of automatically defined variables, sometimes called implicit objects (intrinsic objects). They are: request,response,out,session,application,config,pagecontext, and page.
Article Description: How much do you know about the browser's own development tools?
Conventional
Find development tools
Shortcut:
"F12" (Windows)
"CMD" ⌘+ "Option" + "I" (MAC)
Right-select "Inspect element check elements"
Article Description: Web front-end Performance optimization summary.
For front-end development engineers, the importance of front-end performance optimization is self-evident, the most well-known is the YSlow 23 optimization rules, in my
In the previous article, the author gave you a detailed introduction of the two very useful ASP built-in object application and session of the use of the method. Since both the OnStart and the OnEnd event scripts must be declared in the Global.asa
Programs | scripting | templates | Web page in order to avoid the maintenance difficulties of ASP program and HTML code, this paper introduces a method, using templates to separate programs and pages, making programming easier.
When using ASP to
Use the conditions required by ASP in Flash:
1. Your ISP's server must support active Server pages and it is best to support the database
2. You should install Flash MX
3. You need to have a preliminary understanding of the ASP OK, the following
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