- Mastering Backbone.js
- Abiee Echamea
- 201字
- 2021-07-23 14:39:33
Chapter 2. Managing Views
As we have seen in the previous chapter, Backbone views are responsible for managing DOM (Document Object Model) interactions between users and applications. A typical Backbone application is composed of many views with a very specific behavior; for instance, we can have a view to show contact data and another view to edit it. As you know, rendering a single view is a trivial task, but orchestrating a complex layout with multiple views can be a pain.
It's important to develop a better strategy to deal with complex view interactions to make the project easier to maintain and fun to develop. If you don't put the necessary attention into the organization of your views you can end up with a dirty DOM and messy code, which makes it hard to introduce new features or change existing ones.
As we did in the previous chapter, we are going to separate responsibilities by identifying common view use cases and then will learn how to compose layouts by using small views.
In this chapter you will learn to:
- Identify common view types
- Implement reusable views for common types
- Use the reusable view types to compose complex views easily
- 自然語(yǔ)言處理實(shí)戰(zhàn):預(yù)訓(xùn)練模型應(yīng)用及其產(chǎn)品化
- 案例式C語(yǔ)言程序設(shè)計(jì)
- Beginning C++ Game Programming
- Instant Zepto.js
- JSP開(kāi)發(fā)案例教程
- JavaScript 程序設(shè)計(jì)案例教程
- HTML5+CSS3網(wǎng)頁(yè)設(shè)計(jì)
- Python數(shù)據(jù)分析從0到1
- 深入淺出Serverless:技術(shù)原理與應(yīng)用實(shí)踐
- Learning Node.js for .NET Developers
- INSTANT Silverlight 5 Animation
- Fast Data Processing with Spark(Second Edition)
- Python程序設(shè)計(jì)與算法基礎(chǔ)教程(第2版)(微課版)
- Go語(yǔ)言開(kāi)發(fā)實(shí)戰(zhàn)(慕課版)
- 深入實(shí)踐Kotlin元編程