学习JavaScript-第二版-影印版

学习JavaScript-第二版-影印版

作者:(美)鲍尔斯(Powers.S.)著

出版社:东南大学出版社

出版年:2009-07-01

评分:5分

ISBN:9787564116491

所属分类:网络科技

书刊介绍

学习JavaScript-第二版-影印版 内容简介

如果你想使用javascript来利用当今强大的浏览器,《学习javascript》为这个web开发中奇妙且不可缺少的语言提供了完整而实际的指导。你将会学习从原始数据类型到复杂特性的所有内容,包括与ajax和动态页面效果有关的javascript元素。学完这本书,你将能够使用*复杂的程序库和web应用程序。
第二版中包括了许多javascript运用中的*佳实践和范例,展示了如何将语言和浏览器环境整合,以及如何为符合标准的web站点实践准确的编码技术。
有了这本书,你将能够:
学习javascript应用程序结构,包括基本语句和控制结构;
识别javascript对象:string、number、boolean、function等;
使用浏览器调试工具和故障检测技术;
理解事件处理、表单事件和带有表单的javascript应用程序;
使用浏览器对象模型(bom)、文档对象模型(dom)和自定义对象进行开发;
学习关于浏览器cookies和更多*新的客户端存储技术;
利用ajax应用程序得到使用xml和json的详细信息。
《学习javascript》遵循已被证实的学习原理,帮助你以简单的步骤吸收这些原理,以使你理解如何在各种浏览器中建立强大且反应迅速的应用程序。

学习JavaScript-第二版-影印版 本书特色

“无论你是一个初学者,还是一个正在寻求一种新语言的有经验的程序设计者,我都要明确地向你推荐《学习javascript》这本书。作者shelley简单明了的分析,可以帮助你掌握这种语言的基础及细微之处,从而将它*适当地用于你自己的web站点。”
——anthony t.holdener iii,o'reilly出版的《ajax权威指南》一书的作者
作者简介:shelley powers从事并编写web技术超过13年。近年来她在o'reilly出版的图书内容涵盖了语义网(semantic web)、ajax、javascript及web graphics。同时,她也是一名狂热的业余摄影爱好者和web开发爱好者。

学习JavaScript-第二版-影印版 目录

preface
1. hello javascript!
hello world!
hello world! once again
the script tag
javascript versus ecmascript versus jscript
defining functions in javascript
event handlers
the document browser object
the property operator
the var keyword and scope
statements
comments
what you didn't see: html comments and cdata sections.
javascript files
accessibility and javascript best practices
accessibility guidelines
noscript
2. javascript data types and variables
identifying variables
naming guidelines
primitive types
the string data type
string escape sequences
string encoding
converting to strings
the boolean data type
the number data type
the null and undefined variables
constants: named but not variables
test your knowledge: quiz
test your knowledge: answers
3. operat0rs and statements
the format of a javascript statement
the assignment statement
the arithmetic operators
the unary operators
operator precedence
a handy shortcut: assignment with operation
the bitwise operators
conditional statements and program flow
the if...else conditional statement
the switch conditional statement
the conditional operators
the equality and identity (string equality) operators
other relational operators
the one and only javascript ternary operator
the logical operators
advanced statements: the loops
the while loop
the do...while loop
the for loops
test your knowledge: quiz
test your knowledge: answers
4. the javascript objects
primitive data types as objects
boolean, number, and string
the boolean object
the number object, static properties, and instance methods
the string object
regular expressions and regexp
the regexp methods: test and exec
working with regular expressions
the date object
the math object
the math properties
the math methods
javascript arrays
fifo queues
test your knowledge: quiz
test your knowledge: answers
5. functions
declarative functions
function naming conventions and size
function returns and arguments
anonymous functions
function literals
functions and recursion
nested functions, function closure, and memory leaks
callback functions
function type summary
function scope
function as object
test your knowledge: quiz
test your knowledge: answers
6. troubleshooting, debugging, and cross-browser issues
simple ways to debug
development and debugging tools by browser
firefox and firebug
using console.log
firefox, the web developer toolkit, and noscript
opera and dragonfly
safari/webkit and the web inspector
internet explorer
dealing with cross-browser differences
object detection
where object detection fails
doctype, x-ua-compatible, and quirks mode
breaking backward compatibility: the ie8 http-equiv meta tag
test your knowledge: quiz
test your knowledge: answers
7. catching events
the events
level 0 event handling
the event object
event bubbling
event handlers and this
the dom level 2 event model
generating events
test your knowledge: quiz
test your knowledge: answers
8. forms, form events, and validation
attaching events to forms: different approaches
cross-browser event handling
canceling an event
selection
dynamically modifying the selection
selection and auto-selection
radio buttons and checkboxes
the text, textarea, password, and hidden input elements
text validation
input fields and regular expression validation
forms, the sandbox, and xss
test your knowledge: quiz
test your knowledge: answers
9. browser as puzzle box
the structure of the browser at a glance
the window object
creating and controlling windows
the dialogs: alert, confirm, and prompt
creating custom windows
modifying a window
frames
the location object
remote scripting with the iframe
adding and controlling timers
the history, screen, and navigator objects
the history object
the screen object
the navigator object
the history, screen, and navigator properties in action
the document object
links
images
innerhtml
test your knowledge: quiz
test your knowledge: answers
10. cookies and other client-side storage techniques
the javascript sandbox and cookie security
the same-origin security policy
using document.domain
all about cookies
storing and reading cookies
flash shared objects, google gears, and html5 dom storage
test your knowledge: quiz
test your knowledge: answers
11. the dom, or web page as tree
a tale of two interfaces
the dom html api
the dom html objects and their properties
dom (html) collections
understanding the dom: the core api
the dom tree
node properties and methods
the dom core document object
element and access in context
modifying the tree
test your knowledge: quiz
test your knowledge: answers
12. dynamic pages
javascript, css, and the dom
the style property/attributes
fonts and text
font style properties
text properties
position and movement
dynamic positioning
drag-and-drop
size and clipping
overflow and dynamic content
the clipping rectangle
display, visibility, and opacity
the right tool for the right effect
just-in-time information
revisiting the dom: collapsing forms, query selectors, and class names
test your knowledge: quiz
test your knowledge: answers
13. creating custom lavascript objects
the javascript object and prototyping
prototyping
creating your own custom javascript objects
enter the function
public and private properties and where this enters the picture
getters and setters
object encapsulation
chaining constructors and javascript inheritance
one-off objects
object libraries: packaging your objects for reuse
advanced error handling techniques (try, throw, catch)
test your knowledge: quiz
test your knowledge: answers
14. moving outside the page with ajax
how ajax works
hello ajax world!
the xmlhttprequest object and preparing to send the request
object, object, who has the object?
the xmlhttprequest methods
processing the web request return
checking the readystate and status of an ajax request
processing the web request result
ajax: it's not only code
the dynamic nature of ajax
ajax accessibility and degrading gracefully
security and workarounds
javascript and ajax libraries
test your knowledge: quiz
test your knowledge: answers
15. ajax data: xml orison?
xml-formatted ajax results
the data's mime type
generating the xml on the server
processing the xml on the client
javascript object notation
a simple json application
the json object
test your knowledge: quiz
test your knowledge: answers
index

相关推荐

微信二维码