《Professional JavaScript for Web Developers》day01

本文介绍了JavaScript的三大组成部分:ECMAScript为核心提供基本语言功能,DOM允许开发者操作网页内容和结构,而BOM则让开发者能控制浏览器窗口及框架。文章还列举了BOM的一些常见扩展功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

《professional JavaScript for Web Developers》day01

1.JavaScript简介

1.1JavaScript简史:略

1.2JavaScript实现:

一个完整的JavaScript实现应该由下列三个不同的部分组成

a.核心(ECMAScript)

由ECMA-262定义,提供核心语言功能

b.文档对象模型(DOM)

是针对XML但经过扩展用于HTML的应用程序编程接口。DOM把整个页面映射为一个多层节点结构。

通过DOM创建的表示文档的树形图,开发人员获得了控制页面内容和结构的主动权。借助DOM提供的API,开发人员可以轻松自如的删除、添加、替换或修改任何节点。

c.浏览器对象模型(BOM)

开发人员使用BOM可以控制浏览器显示的页面以外的部分。

从根本上,BOM只处理浏览器窗口和框架;但人们习惯上把所有针对浏览器的JavaScript扩展算作BOM的一部分。下面就是一些这样的扩展:

.弹出浏览器窗口的功能;

.移动,缩放和关闭浏览器窗口的功能;

.提供浏览器详细信息的navigator对象;

.提供浏览器所加载页面的详细信息的location对象;

.提供用户显示器分辨率详细信息的screen对象;

.对cookie的支持

转载于:https://www.cnblogs.com/mylearning-log/p/10733485.html

This book provides a developer-level introduction along with more advanced and useful features of JavaScript. Coverage includes: JavaScript use with HTML to create dynamic webpages, language concepts including syntax and flow control statementsvariable handling given their loosely typed naturebuilt-in reference types such as object and arrayobject-oriented programingpowerful aspects of function expressionsBrowser Object Model allowing interaction with the browser itselfdetecting the client and its capabilitiesDocument Object Model (DOM) objects available in DOM Level 1how DOM Levels 2 and 3 augmented the DOMevents, legacy support, and how the DOM redefined how events should workenhancing form interactions and working around browser limitationsusing the tag to create on-the-fly graphicsJavaScript API changes in HTML5how browsers handle JavaScript errors and error handlingfeatures of JavaScript used to read and manipulate XML datathe JSON data format as an alternative to XMLAjax techniques including the use of XMLHttpRequest object and CORScomplex patterns including function currying, partial function application, and dynamic functionsoffline detection and storing data on the client machinetechniques for JavaScript in an enterprise environment for better maintainability This book is aimed at three groups of readers: Experienced object-oriented programming developers looking to learn JavaScript as it relates to traditional OO languages such as Java and C++; Web application developers attempting to enhance site usability; novice JavaScript developers. Nicholas C. Zakas worked with the Web for over a decade. He has worked on corporate intranet applications used by some of the largest companies in the world and large-scale consumer websites such as MyYahoo! and the Yahoo! homepage. He regularly gives talks at companies and conferences regarding front-end best practices and new technology.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值