Added additional manual links to About page
parent
b005bbce1a
commit
c3c769060c
20
index.html
20
index.html
|
@ -42,8 +42,12 @@
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Classes can be anonymous or named, the latter being more useful for debugging.
|
Classes can be
|
||||||
Since classes may be anonymous, constructors are styled after PHP:
|
<a href="manual/Anonymous-vs_002e-Named-Classes.html" class="man">anonymous or
|
||||||
|
named</a>, the latter being more useful for debugging. Since classes may be
|
||||||
|
anonymous, constructors are <a
|
||||||
|
href="manual/Constructor-Implementation.html" class="man">styled after
|
||||||
|
PHP</a>.
|
||||||
</p>
|
</p>
|
||||||
<pre class="js">
|
<pre class="js">
|
||||||
<!--%inc scripts/ex/class-anon.js -->
|
<!--%inc scripts/ex/class-anon.js -->
|
||||||
|
@ -51,13 +55,14 @@
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Classes can be instantiated with or without the <tt>new</tt> keyword. Omission
|
Classes can be instantiated with or without the <tt>new</tt> keyword. Omission
|
||||||
aids in concise method chaining and the use of temporary classes.
|
aids in concise method chaining and the use of
|
||||||
|
<a href="manual/Temporary-Instances.html" class="man">temporary instances</a>.
|
||||||
</p>
|
</p>
|
||||||
<pre class="js">
|
<pre class="js">
|
||||||
var inst = Foo( "John Doe" );
|
var inst = Foo( "John Doe" );
|
||||||
var inst = new Foo( "John Doe" );
|
var inst = new Foo( "John Doe" );
|
||||||
|
|
||||||
// temporary class
|
// temporary instance
|
||||||
Foo( "John Doe" ).sayHello();
|
Foo( "John Doe" ).sayHello();
|
||||||
</pre>
|
</pre>
|
||||||
<a href="manual/Defining-Classes.html">→ Read more in manual</a>
|
<a href="manual/Defining-Classes.html">→ Read more in manual</a>
|
||||||
|
@ -152,8 +157,8 @@
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
All three common access modifiers — public, protected and private
|
All three common access modifiers — public, protected and private
|
||||||
— are supported, but enforced only in ECMAScript 5 and later
|
— are supported, but <a href="manual/Pre_002dES5-Fallback.html"
|
||||||
environments.
|
class="man">enforced only in ECMAScript 5 and later</a> environments.
|
||||||
</p>
|
</p>
|
||||||
<pre class="js">
|
<pre class="js">
|
||||||
<!--%inc scripts/ex/access-modifiers.js -->
|
<!--%inc scripts/ex/access-modifiers.js -->
|
||||||
|
@ -178,7 +183,8 @@
|
||||||
Static members are bound to the class itself, rather than a particular
|
Static members are bound to the class itself, rather than a particular
|
||||||
instance. Constants are immutable static members (unlike languages like PHP,
|
instance. Constants are immutable static members (unlike languages like PHP,
|
||||||
they may use any access modifier). In order to support both
|
they may use any access modifier). In order to support both
|
||||||
pre- and post-ECMAScript 5 environments, the syntax requires use of a static
|
<a href="manual/Static-Implementation.html" class="man">pre- and
|
||||||
|
post-ECMAScript 5 environments</a>, the syntax requires use of a static
|
||||||
accessor method — <tt>$()</tt>.
|
accessor method — <tt>$()</tt>.
|
||||||
</p>
|
</p>
|
||||||
<pre class="js">
|
<pre class="js">
|
||||||
|
|
Loading…
Reference in New Issue