JavaScript

Page 174

Links for-Anweisungen 128 Funktionen 125 Funktionsbericht 134 globale Deklarationen 125 globale Variablen 125 HTML 134 if-Anweisungen 128 JSON 134 Komma-Operator 128 Konstruktorfunktionen 133 Labels 132 Member 126 new-Präfix 133 Optionen 126 reguläre Ausdrücke 133 return-Anweisungen 132 Semikola 127 switch-Anweisungen 130 throw-Anweisungen 132 var-Anweisungen 130 Variablen 125 void 133 with-Anweisungen 130 wo zu finden 125 Zeilenumbrüche 128 Zuweisungsanweisung 131 JSON 134 JSON (JavaScript Object Notation) 4, 146-150 -Zeichen 147 Array 147 eval-Funktion 149 HTML <script>-Tags 147 innerHTML-Eigenschaft 150 JSLint 134 Objekt 146 sicher nutzen 149 String 147 Syntax 146-149 Textbeispiel 149 Zahlen 147 JSON.parse-Methode 150 ⁄

K

Max. Linie

K&R-Stil 103 Kaskaden 47 Kleene, Stephen 71 Komma-Operator 128 Kommentare 7, 103

160

|

Index

Konstruktoren 33 definieren 52 Konstruktorfunktionen 133 new-Präfix, vergessen 54 Risiken 54

L Label 132 laxbreak-Option (JSLint) 127 Leerstring 13 length-Eigenschaft (Arrays) 64

M Math-Objekt 9 mehrere Anweisungen 102 Memoization 48 message-Eigenschaft 15 Methoden 85-100 array.concat( ) 85 array.join( ) 85 array.pop( ) 86 array.push( ) 86 array.reverse( ) 86 array.shift( ) 86 array.slice( ) 87 array.sort( ) 87-89 array.splice( ) 89-91 array.unshift ( ) 91 Arrays 67 function.apply( ) 91 mit regulären Ausdrücken arbeitende 71 number.toExponential( ) 92 number.toFixed( ) 92 number.toPrecision( ) 92 number.toString( ) 93 object.hasOwnProperty( ) 93 regex.exec( ) 71, 93 regex.test( ) 71, 95 string.charAt( ) 95 string.charCodeAt( ) 96 string.concat( ) 96 String.fromCharCode( ) 100 string.indexOf( ) 96 string.lastIndexOf( ) 96 string.localeCompare( ) 96 string.match( ) 71, 97 string.replace( ) 71, 97 string.search( ) 71, 98

This is the Title of the Book, eMatter Edition Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Max. Linie


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.