
作者:David Sawyer Mcfarland
页数:14
出版社:开明出版社
出版日期:2009
ISBN:9787802057333
电子书格式:pdf/epub/txt
内容简介
《javascript实战》。一个现代网站需要传递的内容不止是文字信息。网站的访客期望智能表格、导航标签、弹出式帮助,还有互动的图片浏览。《javascript实战》带来你正好需要的知识,用有风格而且优雅的方式来发布这些组件 —— 即使你不是一个编程高手。
作者简介
作者:(美国)David Sawyer Mcfarland
David Pogue是《纽约时报》的技术专栏作家、畅销书作者和The Missing Manual系列图书的创始人。
本书特色
您需要了解的重要内容
开始就构建结构良好并且能和你的html和css网页协同运行的javascript程序。
定制你的代码——本书循序渐进的指导让你增加网页正好要调用的功能。
通过查看本书的实时在线示例开发你自己的网站解决方案。
避免常见错误——找出什么是应该避免的用法。
用预先写好的大量jquery函数库代码来节省时间和精力。
使用基本的ajax编程整合来自一台网络服务器或者google地图的实时数据。
为什么创建missing manual系列丛书?
当内容生动、清楚和有趣时,人们能获得最佳的学习效果。不幸的是,绝大多数计算机图书读起来都像乏味的购物目录。这就是我为什么开发the missing manual系列图书。这一系列图书有趣,也不怕提到无用或者运行不正确的功能,而且——哦,顺便提一下——是由有实践经验的作者写成的。在书的每一页上我们都回答这个直接的问题:“这个功能有什么用处?”
davidapogue是《纽约时报》的技术专栏作家、畅销书作者和the missingamanual系列图书的创始人。
目录
introduction
part one: getting started with javascript
chapter 1: writing your first javascript program
introducing programming
what’s a computer program?
how to add javascript to a page
external javascript files
your first javascript program
writing text on a web page
attaching an external javascript file
tracking down errors
the firefox javascript console
displaying the internet explorer error dialog box
accessing the safari error console
chapter 2: the grammar of javascript
statements
commands
types of data
numbers
strings
booleans
variables
creating a variable
using variables
working with data types and variables
basic math
the order of operations
combining strings
combining numbers and strings
changing the values in variables
tutorial: using variables to create messages
tutorial: asking for information
arrays
creating an array
accessing items in an array
adding items to an array
deleting items from an array
adding and deleting with splice( )
tutorial: writing to a web page using arrays
comments
when to use comments
comments in this book
chapter 3: adding logic and control to your programs
making programs react intelligently
conditional statement basics
adding a backup plan
testing more than one condition
more complex conditions
nesting conditional statements
tips for writing conditional statements
tutorial: using conditional statements
handling repetitive tasks with loops
while loops
loops and arrays
for loops
do/while loops
functions: turn useful code into reusable commands
mini-tutorial
giving information to your functions
retrieving information from functions
keeping variables from colliding
tutorial: a simple quiz
chapter 4: working with words, numbers, and dates
chapter 5: dynamically modifying web pages
chapter 6: action/reaction: making pages come alive with events. 201
chapter 7: improving your images
chapter 8: improving navigation
chapter 9: enhancing web forms
chapter 10: expanding your interface
chapter 11: introducing ajax
chapter 12: basic ajax programming
chapter 13: troubleshooting and debugging
chapter 14: going further with javascript
appendix a: javascript resources
index
节选
《JavaScript实战(影印版)》,一个现代网站需要传递的内容不止是文字信息。网站的访客期望智能表格、导航标签、弹出式帮助,还有互动的图片浏览。《JavaScript实战》带来你正好需要的知识,用有风格而且优雅的方式来发布这些组件 —— 即使你不是一个编程高手。















