Vista Posteos

news moncler shop online canadagooses A thorough understanding of JavaScript (1) [ switch ]
Canada goose jacket diesel Luppyr is a good choice with the major European styles. This Canada goose spread collar with smooth gray jacket complete. This Canada goose jacket epaulets on the shoulders and flap pockets and logo on the chest bump to complete. Zipper pockets at the waist, to keep your items close to your security, while rib knit cuffs tone will provide a custom fit, he will love. Wrinkle to deal with this retro jacket Canada Goose to create a unique appearance will make him stand out. This is a great guy, a real adventure, when it comes to choose his jacket. He would love to he picked up this incredible Canada Goose jacket particularly like you! There are some new pictures of MONCLER online MONCLER jacket . Picture we can see , this 2011 's style jacket MONCLER MONCLER series highlighting women as some colorful yellow , orange and green , rarely black, to be active and attractive .
javascript more in-depth articles, have high blood pressure, please do not try !!!!!

reads as follows:

primer

; programming world there are only two basic elements, one for data, one is the code. Programming data and code in the world is inextricably entangled in the present infinite vitality.

data is inherently quiet, always want to maintain their inherent qualities; the code is a natural and lively, always want to change the world.

You see, the relationship between data and code the relationship between matter and energy are surprisingly similar. Data also have inertia, if not the code to apply force, she always maintained their original state. The code is like energy, his sole purpose of existence is to strive to change the data in its original state. Change data in the code at the same time, because the data will in turn affect the resistance or change the code of the original trend. Even in some cases, data can be transformed into code, and code but may be transformed into data, and perhaps there is a similar E = MC2 equation of the form of digital conversion it. However, that is, data and code that is contradiction between the unity of this operation,moncler for babies, always reflect the laws of the computer world, these laws is what we write the program logic.

However, due to different programmers have different world views, these data and the code will look different. As a result, programmers who use different world views of their methodology, to promote the evolution and development of the programming world.

we all know, today's most popular object-oriented programming programming ideas than the ideas. Why is the idea of ​​object-oriented programming can be quickly swept the world? Because the idea of ​​object-oriented data and code the first time combined into a unity, and the concept of a simple object presented to the programmer. This will be once the original algorithm and subroutine are messy, tangled and complex data structures, divided into clear and orderly structure of the object, which sort out the data and code that mess in our hearts like a knot. We can have a clearer mind, thinking of another more vast height up to explore the programming world.

taught in Wuzu Hongren finished Please write a Jizai their view. Disciple Shenxiu are we recognized as the most savvy senior, he Jizi wrote: Ciji one, immediately caused a sensation Shixiongdimen, everyone says that write great. Monk Hui Neng only attempting to see, gently sighed, and readily on the wall wrote: Then shook his head,spyder jacket reviews, walk away. We saw Hui Neng's Jizi said: Master Hongren martial poetry reading Shenxiu also nods, look after Hui Neng's poem mechanic shook his head in silence. In the night,Spyder Jackets Womens down, Hongren quietly to their Buddhist temple called Hui Neng,moncler shop online, the software will treasure for years to teach in his Scriptures, and then let him take advantage of the moonlight night away ...

; Later, Master Hui Neng did not let expectations, another in the south created a Zen vast sky. The Patriarch then take away the software in the Scriptures, there is a



return to simple to understand JavaScript, you must first put the concept of objects and classes, back to the primitive data and code. As mentioned above, the programming world, only the data and code are two basic elements, and these two elements and has a tangled relationship. JavaScript is to simplify the data and code to the most primitive level.

JavaScript data is very simple. Simple data only undefined, null, boolean, number, and the five string, and complex data only one, object. This is like the simple materialism of classical Chinese thought, the most basic elements of the world classified as Elements, other complex substances are formed by these five basic elements.

JavaScript code is only manifested in a form that function.

Note: The above words are lower case, do not and Number, String, Object, Function and other built-in JavaScript functions confused. You know, JavaScript is case-sensitive language, ah!

Any JavaScript identifier, constants, variables and parameters are only unfined, null, bool, number, string, object and a function type, the return value will indicate the type of typeof. There is no other types.

first talk about the simple data types it.

undefined: on behalf of all the unknown, consequently, can not imagine that the code will not be able to deal with.
Note: typeof (undefined) return is undefined.
; can be assigned to any variable or undefined attributes, but it does not mean the removal of the variable, it will so much a property.

null: there is then a concept, but nothing. Seems to be no in, there was also no. Although hard to imagine, but can already use the code to deal with.
Note: typeof (null) return object, but not the null object, the variable has a null value is not the object.

boolean: is is, non-non, no doubt. On the right, it would be wrong, absolutely clear. Both are code processing, you can control the code flow.

number: linear things, size, and sequenced, and more without the mess. Easy to code for batch processing, and control code iteration and circulation.
Note: typeof (NaN) and typeof (Infinity) returns number.
; NaN participate in any numerical calculation of the structure is NaN, and NaN! = NaN.
; Infinity / Infinity = NaN.

string: the rational thing for human beings, not machines signal. Man-machine communication, understanding the intent of the code accordingly and so on, all depends on it.

simple types are not objects, JavaScript is not object-oriented capabilities will give these simple types. Directly by the constant value given simple type identifier, variables and parameters is not an object.

so-called Only in JavaScript object type and function type provides an object-oriented capabilities.



object class is not the type of object. In JavaScript, no matter how complex data and code, can be organized into object form of the object.

but JavaScript is not

for many object-oriented programmers, this is probably the most difficult to understand JavaScript place. Yes ah,mens moncler jackets, almost any book about object-oriented, first want to say This sudden lack of a It seems to drop the object and class, to

this way, we first look at a JavaScript program:
var life = {};
for (life.age = 1; life.age <= 3; life.age + +)
{
; switch (life.age)
{
case 1: life.body = life.say = function () {alert (this.age + this.body)};
; break;
case 2: life.tail = life.gill = ; life.body = life.say = function () {alert (this.age + this.body +this.gill)};
break ;
case 3: delete life.tail;
; delete life.gill;
; life.legs = ; life.lung = life.body = ; life.say = function () {alert (this.age + this.body +break;
};
life.say ();
};
the beginning of this resulted in a JavaScript program a life object life, life was born just a bare object, without any attributes and methods. In the first course of life, it has a physical property of body, and have a say method, appears to be an In the second course of life, it took a In the third life course, its tail and gill properties disappear, but grow the If your rich imagination, then, might be able to make it into a handsome However, after watching this program, please think about a problem:

we need to class?

remember the childhood that Maybe just yesterday evening, your child just in this beautiful fairy tale, go to bed in it. Cute little tadpole that is evolving in its own type of process, and gradually became a mother and the same This fairy tale contains programming philosophy is: the object of But if we thought was the Imagine, if you start a life when an object is provided regular Tadpole into a frog can do? You can also talk to the children the story of Little Tadpole Looking for Mom do?

So, JavaScript is not Because down the

If, when your heart begins to perception, then you have come to begin to understand the Zen of JavaScript.
dfadf9hds 15.12.2011 0 81
Publicidad

Bloque HTML
Comentarios
Ordenar por: 
Por página:
 
  • Aún no hay comentarios
Información de Entrada
15.12.2011 (4666 días)
Publicidad

 

 

 

Calificar
0 votos
Recomendar
Acciones
Categorías
Baby Blogs (163 publicaciones)