1. Trang chủ
  2. » Công Nghệ Thông Tin

JavaScript Bible®Sixth EditionDanny Goodman with Michael MorrisonWith a foreword by Brendan pptx

1,2K 3,3K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.200
Dung lượng 13,12 MB

Nội dung

[...]... the language’s founding company, Sun Microsystems JavaScript: A Language for All Sun’s Java language is derived from C and C++, but it is a distinct language Its main audience is the experienced programmer That leaves out many Web-page authors I was dismayed by this situation when I first read about Java’s preliminary specifications in 1995 I would have preferred a language that casual programmers and... wayward statement—adds to your knowledge of the language If you’ve done a little programming before Programming experience in a procedural language, such as BASIC, may almost be a hindrance rather than a help to learning JavaScript Although you may have an appreciation for precision in syntax, the overall concept of how a program fits into the world is probably radically different from JavaScript Part... the Java style For client-side scripting, the language was intended for very different purposes than Java — essentially to function as a programming language integrated into HTML documents rather than as a language for writing applets that occupy a fixed rectangular area on the page (and that are oblivious to anything else on the page) Instead of Java’s full-blown programming language vocabulary (and... Macromedia Corporation’s Flash plug-in Created using the Macromedia Flash authoring environment, a Flash document can have active clickable areas and draggable elements Some authors even simulate artistic video games and animated stories in Flash A browser equipped with the Flash plug-in displays the content in a rectangular area embedded within the browser page One potential downside for authoring interactive... conceptually more difficult to learn object-oriented approach), JavaScript had a small vocabulary and a more easily digestible programming model The true difficulty, it turned out, was making the distinction between Java and JavaScript clear to the world Many computer journalists made major blunders when they said or implied that JavaScript provided a simpler way of building Java applets To this day, some... to Chapter 15 from other chapters, a dark tab along the outside edge of the page shows you at a glance where the chapter is located Additional navigation aids include guide words near the top of most pages to indicate which object and object feature is covered on the page Part IV Reference information for the core JavaScript language fills Part IV As with reference chapters of Part III, the JavaScript. .. announced that the scripting language thereafter would be known as JavaScript Though Netscape had several good marketing reasons for adopting this name, the changeover may have contributed more confusion to both the Java and HTML scripting worlds than anyone expected Before the announcement, the language was already related to Java in some ways Many of the basic syntax elements of the scripting language were... programmers believe JavaScript is synonymous with the Java language: They post Java queries to JavaScript- specific Internet newsgroups and mailing lists The fact remains that client-side Java and JavaScript are more different than they are similar The two languages employ entirely different interpreter engines to execute their lines of code Enter Microsoft and others Although the JavaScript language... in Java before Despite the similarity in their names, the two languages share only surface aspects: loop and conditional constructions, C-like dot object references, curly braces for grouping statements, several keywords, and a few other attributes Variable declarations, however, are quite different, because JavaScript is a loosely typed language A variable can contain an integer value in one statement... one statement and a string in the next (although I’m not saying that this is good style) What Java refers to as methods, JavaScript calls methods (when associated with a predefined object) or functions (for scripter-defined actions) JavaScript methods and functions may return values of any type without having to state the data type ahead of time Perhaps the most important aspects of Java to suppress . 572-4002. Library of Congress Cataloging-in-Publication Data Goodman, Danny. JavaScript bible / Danny Goodman with Michael Morrison ; with a foreword by Brendan Eich 947 JavaScript Array Creation Enhancements 947 Deleting Array Entries 948 Parallel Arrays 948 Multidimensional Arrays 951 Simulating a Hash Table 952 Array

Ngày đăng: 06/03/2014, 00:21

TỪ KHÓA LIÊN QUAN