精通jQuery的JavaScript与CSS开发

需积分: 9 2 下载量 5 浏览量 更新于2024-10-27 收藏 9.92MB PDF 举报
" Beginning JavaScript and CSS Development with jQuery 是一本面向初学者的编程指南,全面涵盖了JavaScript、CSS以及jQuery的基础知识和应用。本书通过丰富的全彩代码和插图来辅助理解,旨在帮助读者掌握网页开发的核心技术。" 这本书分为两大部分:jQuery API 和 jQuery UI。 在 Part I: jQuery API 中,作者 Richard York 详细介绍了以下内容: 1. **Chapter 1: Introduction to jQuery**:讲解了jQuery的基本概念、为什么选择jQuery,以及如何在项目中引入jQuery库。这部分还涵盖了jQuery的选择器、DOM操作和事件处理基础。 2. **Chapter 2: Selecting and Filtering**:深入探讨了如何使用jQuery选择和过滤DOM元素,包括基本选择器、层次选择器、属性选择器等,以及如何利用这些工具优化代码性能。 3. **Chapter 3: Events**:讲解了jQuery中的事件处理,包括绑定、解绑和触发事件,以及事件委托,帮助开发者实现更灵活的交互设计。 4. **Chapter 4: Manipulating Content and Attributes**:介绍如何使用jQuery修改HTML内容和属性,包括文本、HTML、属性的添加与删除,以及数据缓存。 5. **Chapter 5: Arrays and Iteration**:讨论了JavaScript数组的操作,如遍历、查找、排序,以及jQuery中的迭代方法。 6. **Chapter 6: CSS**:讲解如何用jQuery操作CSS样式,包括添加、删除和切换类,以及动态调整CSS属性。 7. **Chapter 7: AJAX**:介绍了jQuery的AJAX功能,用于创建异步页面更新,包括GET、POST请求,以及JSON和XML数据的处理。 8. **Chapter 8: Effects**:讨论了jQuery的各种动画效果,如淡入淡出、滑动、淡变,以及自定义动画。 9. **Chapter 9: Plugins**:介绍了如何使用和开发jQuery插件,以扩展jQuery的功能。 Part II: jQuery UI 部分则专注于jQuery UI库的使用,包括: 1. **Chapter 10: Implementing Drag-and-Drop**:讲解如何实现拖放功能,让元素可以被用户在界面上拖动。 2. **Chapter 11: Drag-and-Drop Sorting**:进一步探讨拖放排序,使元素可以按用户意图进行排序。 3. **Chapter 12: Selection by Drawing a Box**:介绍如何通过绘制选区来选取多个元素,提高用户交互体验。 4. **Chapter 13: Accordion UI**:教授如何创建手风琴效果,用于折叠和展开内容区域。 5. **Chapter 14: Datepicker**:讲解日期选择器的使用,方便用户输入日期。 6. **Chapter 15: Dialogs**:讨论对话框的创建和配置,如警告、确认和模态对话框。 7. **Chapter 16: Tabs**:介绍如何设置和管理选项卡式布局,提高页面组织和导航效率。 书的最后部分包含了一系列附录,提供了练习答案、jQuery支持的选择器、选择与过滤方法、事件、属性和数据缓存的操纵,以及AJAX方法的详细参考,这些都为读者提供了额外的学习资源和支持。 "Beginning JavaScript and CSS Development with jQuery" 是一个全面且实践性强的教程,适合想要学习和提升网页开发技能,特别是对jQuery感兴趣的初学者。通过阅读本书,读者将能够构建动态、响应式的网页,并掌握JavaScript、CSS和jQuery的核心概念与实践技巧。

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 上传