Knockout.js: Building Dynamic Client-Side Web Applications (Paperback)

Jamie Munro

  • 出版商: O'Reilly
  • 出版日期: 2015-01-27
  • 定價: $990
  • 售價: 9.5$941
  • 貴賓價: 9.0$891
  • 語言: 英文
  • 頁數: 102
  • 裝訂: Paperback
  • ISBN: 1491914319
  • ISBN-13: 9781491914311
  • 相關分類: JavaScript
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

商品描述

Use Knockout.js to design and build dynamic client-side web applications that are extremely responsive and easy to maintain. This example-driven book shows you how to use this lightweight JavaScript framework and its Model-View-ViewModel (MVVM) pattern. You’ll learn how to build your own data bindings, extend the framework with reusable functions, and work with a server to enhance your client-side application with persistence. In the final chapter, you’ll build a shopping cart to see how everything fits together.

If you’re a web developer with experience in JavaScript, HTML, and CSS, you’re ready for Knockout.

  • Learn how to create a ViewModel
  • Bind HTML data and attributes, and CSS classes and styles
  • Understand data binding in Knockout’s context hierarchy
  • Use properties that change dynamically through user interaction
  • Work with forms by using several different bindings
  • Bind multiple ViewModels on a single page
  • Extend or attach custom functions to observables
  • Perform server-side interactions with jQuery
  • Map a JavaScript object or apply JSON data to a new object

商品描述(中文翻譯)

使用 Knockout.js 設計和建立動態的客戶端網頁應用程式,這些應用程式非常靈敏且易於維護。這本以實例驅動的書籍將向您展示如何使用這個輕量級的 JavaScript 框架及其 Model-View-ViewModel (MVVM) 模式。您將學習如何建立自己的資料綁定,擴展框架以重複使用函數,並與伺服器合作,以實現客戶端應用程式的持久性。在最後一章中,您將建立一個購物車,以了解所有內容如何結合在一起。

如果您是一位具有 JavaScript、HTML 和 CSS 經驗的網頁開發人員,您已經準備好使用 Knockout 了。

學習如何創建 ViewModel
綁定 HTML 資料和屬性、CSS 類別和樣式
了解 Knockout 的資料綁定在上下文層次結構中的運作方式
通過使用者互動來動態更改屬性
使用多種不同的綁定方式處理表單
在單個頁面上綁定多個 ViewModel
擴展或附加自訂函數到 observables
使用 jQuery 執行與伺服器的互動
將 JavaScript 物件映射或應用 JSON 資料到新物件中