内容简介
你将从本书学到什么?
这么说你准备从写HTML和CSS的静态网页跃进到编写动态网络应用程序脚本了?这里就是起点。《深入浅出JavaScript》带你游历令人兴奋的交互式网页创建过程。为了启发你的思考,本书覆盖了所有的JavaScript基本知识,从基本网络编程技巧,如变量、函数和循环语句,到高级一些的专题,如表单验证、DOM操作、客户端对象、脚本程序调试——甚至Ajax!赶快做好准备,快速响应的网站离你只有几页书那么远。
使用JavaScript帮助人们与iRock交互
理解如何用模式匹配来验证表单数据
使用为你定制的调试终端来调试代码
解决需要兼顾面向对象和数据驱动的博客网站困境
使用DOM操作你的网页
并在一次网上历险中追踪你所作决策的历史
为什么这本书看起来如此不同?
我们认为你的时间如此宝贵以至于不应该花费在为新概念伤脑筋上面。《深入浅出JavaScript》用最新的认知科学和学习理论打造多感官的学习体验,它运用丰富的视觉样式激发你的大脑工作,而不是密密麻麻的文字让你看了昏昏欲睡。
编辑推荐
“非常实际而且有用,同时也解释得非常清楚。本书在向一个完全新手介绍JavaScript时做得非常出色,并且本书是Head First(深入浅出)系列教学风格的又一见证。与其他关于JavaScript的书相比,用《深入浅出JavaScript》来学习是很棒的,想想其他的参考书都有电话簿那么厚。”
——Alex Lee,学生,休斯敦大学(University of Houston)
“一个初级JavaScript开发人员的完美选择。”
——Fletcher Moore,网络开发人员和设计者,乔治亚理工学院(Georgia Institute of Technology)
“经典‘深入浅出’系列里又一本伟大的书。”
——TW Scannell
目录
Intro
Who is this book for?
We know what you're thinking
Metacognition
Bend your brain into submission
Read me
The technical review team
Acknowledgments
1 the interactive web: Reacting to the Virtual World
(Online) people have needs
Like talking to a brick wall...nothing happens
ButJavaScript talks back
Lights, camera, interaction!
Use the tag to tell the browser you're writingJavaScript
Your web browser can handle HTML, CSS, AND JavaScript
Man's virtual best Friend... needs YOUR help
Making iRock interactive
Create the iRock web page
Test drive
JavaScript events: giving the iRock a voice
Alerting the user with a function
Add the iRock greeting
Now let's make the iRock really interactive
Interaction is TWO-way communication
Add a thnction to get the user's name
Instant replay: what just happened?
Test drive iRock 1.0
2 storing data: Everything Has Its Place
Your scripts ..
书摘
“非常实际而且有用,同时也解释得非常清楚。本书在向一个完全新手介绍JavaScript时做得非常出色,并且本书是Head First(深入浅出)系列教学风格的又一见证。与其他关于JavaScript的书相比,用《深入浅出JavaScript》来学习是很棒的,想想其他的参考书都有电话簿那么厚。”
——Alex Lee,学生,休斯敦大学(University of Houston)
“一个初级JavaScript开发人员的完美选择。”
——Fletcher Moore,网络开发人员和设计者,乔治亚理工学院(Georgia Institute of Technology)
“经典‘深入浅出’系列里又一本伟大的书。”
——TW Scannell