JavaScript模式-扫描版.pdf
JavaScript 是一种基于网络的语言。它最初是作为一种操作网页中某些特定类型元素的方式,例如图像和表格字段,但该语言的发展远远超出了它的预期。除了作为客户端浏览器编写脚本之外,JavaScript 现在还可用于在越来越多的平台上进行编程。例如,它可用于编写服务器端代码(使用 .NET 或 Node.js)、应用程序扩展(例如 Firefox 和 Photoshop 的扩展)、移动应用程序和命令行脚本。JavaScript 也是一种不同的语言。它没有类,函数是用于许多任务的顶级类对象。最初许多程序员认为该语言效率低下,但近年来这种看法发生了变化。有趣的是,Java 和 PHP 等语言开始添加 JavaScript 程序员长期以来喜欢的闭包和匿名函数特性。
JavaScript 是一种动态语言,可以将其配置为与您习惯的其他语言一样的外观和感觉。但接受 JavaScript 与其他语言的不同并学习其特定模式可能是更好的方法。
(JavaScript is a web-based language. It was originally used as a way to manipulate certain types of elements in web pages, such as images and table fields, but the development of the language far exceeded its expectations. In addition to scripting as a client browser, JavaScript can now be used to program on a growing number of platforms. For example, it can be used to write server-side code (using. Net or node. JS), application extensions (such as Firefox and Photoshop extensions), mobile applications, and command-line scripts.JavaScript is also a different language. It has no classes, and functions are top-level class objects for many tasks. At first, many programmers thought the language was inefficient, but this view has changed in recent years. Interestingly, languages such as Java and PHP began to add closure and anonymous function features that JavaScript programmers have long liked.JavaScript is a dynamic language that can be configured to look and feel like other languages you're used to. But it may be better to accept the differences between JavaScript and other languages and learn its specific patterns.)
页:
[1]