精通JavaScript与CSS开发:结合jQuery实践指南

需积分: 9 3 下载量 101 浏览量 更新于2024-09-27 收藏 9.92MB PDF 举报
" Beginning JavaScript and CSS Development with jQuery" 是一本由 Richard York 编写的关于使用 jQuery 进行前端开发的入门书籍。这本书包含了全彩代码和插图,属于 Wrox 出版社的 Programmer to Programmer 系列。 本书分为两大部分:jQuery API 和 jQuery UI。 在 Part I: jQuery API 中,作者详细介绍了以下几个核心知识点: 1. 第1章:jQuery 介绍 - 解释了什么是 jQuery,为什么使用它,以及如何在项目中引入 jQuery 库。 2. 第2章:选择与过滤 - 讨论了如何选取和筛选页面中的元素,包括基本的选择器、上下文选择器和多选择器等。 3. 第3章:事件处理 - 阐述了如何绑定和触发事件,以及如何使用事件委托。 4. 第4章:内容与属性的操纵 - 教授如何修改元素的内容、添加或删除属性,以及操作 HTML 片段。 5. 第5章:数组与迭代 - 介绍了如何处理 JavaScript 数组,包括遍历、查找和操作数组的方法。 6. 第6章:CSS - 解释了如何使用 jQuery 来操作和修改页面样式,包括类的添加、移除和切换。 7. 第7章:AJAX - 讲解了如何利用 jQuery 进行异步数据请求,实现页面无刷新更新。 8. 第8章:效果 - 展示了 jQuery 提供的各种动画效果,如淡入淡出、滑动和自定义动画。 9. 第9章:插件 - 介绍了如何使用和创建 jQuery 插件,扩展其功能。 Part II: jQuery UI 部分则专注于使用 jQuery UI 库来构建用户界面: 1. 第10章:拖放功能 - 教授如何实现元素的拖放交互,提高用户体验。 2. 第11章:拖放排序 - 说明如何使拖放元素能够排序,适用于列表和网格布局。 3. 第12章:框选选择 - 展示通过绘制矩形框来选择多个元素的技术。 4. 第13章:手风琴UI - 描述如何创建可折叠的面板,节省页面空间。 5. 第14章:日期选择器 - 介绍如何集成日期输入,提供友好的用户界面。 6. 第15章:对话框 - 解释如何弹出对话框,用于提示、确认或提供更复杂的内容。 7. 第16章:选项卡 - 讲解如何创建选项卡界面,方便组织和切换内容。 书后还附有多个附录,提供了练习答案和关键知识点的速查表,包括 jQuery 支持的选择器、选择与过滤方法、事件、属性和数据缓存的操纵,以及 AJAX 方法等。 通过这本书,读者可以系统地学习和掌握使用 jQuery 进行前端开发的基础知识和高级技巧,同时了解如何利用 jQuery UI 创建丰富的用户界面。无论是初学者还是有一定经验的开发者,都能从中受益。

Based on the following story, continue the story by writing two paragraphs, paragraph 1 beginning with "A few weeks later, I went to the farm again. " and paragraph 2 beginning with "I was just about to leave when the hummingbird appeared."respectively with 150 words. I was invited to a cookout on an old friend's farm in western Washington. I parked my car outside the farm and walked past a milking house which had apparently not been used in many years.A noise at a window caught my attention,so I entered it. It was a hummingbird,desperately trying to escape. She was covered in spider-webs and was barely able to move her wings. She ceased her struggle the instant I picked her up. With the bird in my cupped hand, I looked around to see how she had gotten in. The broken window glass was the likely answer. I stuffed a piece of cloth into the hole and took her outside,closing the door securely behind me. When I opened my hand, the bird did not fly away; she sat looking at me with her bright eyes.I removed the sticky spider-webs that covered her head and wings. Still, she made no attempt to fly.Perhaps she had been struggling against the window too long and was too tired? Or too thirsty? As I carried her up the blackberry-lined path toward my car where I kept a water bottle, she began to move. I stopped, and she soon took wing but did not immediately fly away. Hovering,she approached within six inches of my face. For a very long moment,this tiny creature looked into my eyes, turning her head from side to side. Then she flew quickly out of sight. During the cookout, I told my hosts about the hummingbird incident. They promised to fix the window. As I was departing, my friends walked me to my car. I was standing by the car when a hummingbird flew to the center of our group and began hovering. She turned from person to person until she came to me. She again looked directly into my eyes, then let out a squeaking call and was gone. For a moment, all were speechless. Then someone said, “She must have come to say good-bye.”

2023-02-12 上传
2023-06-04 上传