When there is a holiday, use js ??? A set of js? Method analyzer ,? Method analyzer ,?? Tool, solution? And ?? Very ?? Wei? De, yourself ??? Letter? Island alkyl] package. What's more ?? In Chinese? Method analyzer? Method analyzer ,??? A question ?? Me ?? What is the meaning of M in Chinese? Cheng? Statement. -----------... SyntaxHighlighter. all (
When there is a holiday, use js ??? A set of js? Method analyzer ,? Method analyzer ,?? Tool, solution? And ?? Very
?? Wei? De, yourself ??? Letter? Island alkyl] package. What's more ?? In Chinese? Method analyzer? Method analyzer ,??? Once
?? Me ?? What is the meaning of M in Chinese? Cheng? Statement.
------------------------------
Chinese? Cheng? Words? Lattice (?? Example ):
+-*/^ & | ~ = And so on
Available?] :==-> =? For example, 1 =? 2 ratio? Table? ? >? ? Quantity? Ming
Yuan a = expr
Letter? De? Ming
Letter? ???? ??? : [[Generation? Segment]
Letter? ???? ??? ::
[[
Generation? Segment
]
Anonymous letter ?? Br/>? To M # Sort (_(???, ???) : [[Return ??? -???;])
? Why ?? Br/>? Why ?? Why? Br/>? Why? Method (??????
? Benzene benzene? Br/> yuan o = [[? Why? Value: 1 ,? Why? : The value is 2 ,? Why? : Value 3];
Yuan o = [[
? Why? Value 1,
? Why? : Value 2,
? Why? : Value 3
];
Yuan o = [[:];
O #? Why? Br/>? Direct Volume to M
Yuan o = [[value 1, value 2, value 3];
? To M ?? Br/>? To M # [1]
? Sentence
Return;
Returns 1;
Returns [[? Why? Value ,? Why? : The value is 2 ,? Why? : Value 3];
???
?? Output [[? Why? Value ,? Why? : The value is 2 ,? Why? : Value 3];
?? New ?? ("? Quantity a is not fixed? ");
Sentence ?? Br/> If a = 1 [// is required? Connected? Sentence? K, that is, not allowed? If (cond) aa; required? Yes if cond {aa ;}
Dadada
] No? T [[
Dididi
]
Cycle?
If a = 1 ?? [
Dadada
]
Anti ?? [
Dadada
] If a = 1;
Break
Jump out
Continue
??
? His '? Sentence:
? His' recycle? Source: // js? A:? Sentence? K {} is easy ?? Why ?? X
Branch
If a [[// do not use =, do not use =? Burst
? 1:
Xxx;
Jump out;
? 2:
Yyy;
Jump out;
Others:
Zzz;
]
Cycle?
Make a = 1; a <10; a ++ [[
Zzz;
]
All? O [[
Zzz;
]
In
? Why? Br/> instanceof
Yes
Try
? Why? [
Xxx;
] Capture? E [[
Yyy;
] Most? [[
Zzz;
]
-----------------------------------
? Y? Generation? :
//-----------------------?? Letter creation? ------------------------
Person ()::[[
I # name = '?? 3 ';
Me # Years? = 22;
Me #? = _()::[[
Console # log ('Hello everyone, my name '+ me # name + ", me this year" + me # Years?
+ '? Q ');
]
]
Yuan ?? 3 = new person ();
?? 3 #? ();
Log (?? 3 # Name );
//-----------------------? Da {sort ----------------------------
Yuan a = [[4, 6, 7, 2, 1, 3];
A # sort (_ (a, B )::[[
Returns a-B;
]);
Log ();
// ---------------------- Cons ------------------------
Cons (a, B )::[[
Return _ (o )::[[
If o = 1 [[return a;] No? T [[return B;]
]
]
Car (o): [[return o (1);]
Cdr (o): [[return o (2);]
Yuan s = cons (7, 8 );
Log (car (s ));
Log (cdr (s ));
Bonding (1, 2 )::[[
Return _(? C ?) ::[[
If? C? = 1 [[return 1;] No? T [[returns 2;]
]
]
? (Molecule): [[return molecule (1);]
Tail removal (molecular): [[return molecular (2);]
Small RMB = bonding (7, 8 );
Log (take? (Small ));
Log (tail (small ));
// ======================================
Person ()::[[
I # name = '?? 3 ';
Me # Years? = 22;
Me #? = _ (Urname )::[[
Console # log (urname + ', hello, my name is' + me # name + ", me this year" + me
# Years? + '? Q ');
Returns 2;
]
]
Yuan ?? 3 = [[:];
Person # apply (?? 3. [[]);
Yuan s = ?? 3 #? # Call (?? 3, 'wang san ');
Yuan s = ?? 3 #? # Apply (?? 3. [['wang san']);
Log (s );
// ----------------------------------- Prototype & instanceof -------------------
----
Person ()::[[
I # name = '?? 3 ';
]
Person # prototype #? = _()::[[
Log ('Hello, I am '+ I # Name );
];
MAN ()::[[
]
Man # prototype = new man ();
Man # prototype #? = _()::[[
Log ('Hello, I am '+ I # name + 'Mr ');
];
Yuan a = new man ();
Log (a is a man );
Log (a is a person );
Log (Object );
//-------------------------? Package ------------------------
F ()::[[
Return _ (): [[return a;]
]
Yuan a1 = f (1 );
Yuan a2 = f (2 );
A1 () + a2 ()
//----------------------? To M --------------------------
//? Y? This .? Whether M is constant
Person ()::[[
I # Xi? Persons in g = [[];
I # name = '?? 3 ';
]
Yuan p1 = new person ();
Yuan p2 = new person ();
P1 # name = 'Lee Shimin ';
P1 # Xi? G's personnel # push ('cheng Zhijin ');
Log (p2 # Name );
Log (p2 # Hi? G );
-------------------
Enjoy it ~~