万本电子书0元读

万本电子书0元读

顶部广告

KnockoutJS Web Development电子书

售       价:¥

3人正在读 | 2人评论 9.8

作       者:John Farrar

出  版  社:Packt Publishing

出版时间:2015-02-27

字       数:80.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(1条)
  • 读书简介
  • 目录
  • 累计评论(1条)
This book is for web developers and designers who work with HTML and JavaScript to help them manage data and interactivity with data using KnockoutJS. Knowledge about jQuery will be useful but is not necessary.
目录展开

KnockoutJS Web Development

Table of Contents

KnockoutJS Web Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started with KnockoutJS

Installing KnockoutJS

Looking at MVVM

Binding DOM elements using Knockout

Binding text

Binding HTML

Binding CSS

Binding numbers

Managing visibility

Multibound control

Power development using browser developer tools

The Knockout debugger

Shortcuts

The DOM inspection

The AJAX inspection

The resource inspection

The device emulation

Using internal functions with Knockout

Preventing hidden features

Automating calculations with Knockout

Subtotal calculation

Tax time

Final total

Working with non-Knockout functions

Summary

2. Using Arrays, Nesting, and Grids

Conditional binding

Introduction to arrays in Knockout

Working with array collections

Removing the last item

Sorting time

The simpleGrid plugin

Running the code

Final sort

Summary

3. Giving Forms the Knockout Touch

Event binding

The binding markup

The binding checkbox with visibility

Modifier keys

Default actions

Preventing bubbling

The textInput binding

Dynamic focus

Radio and checkbox binding

Enhanced event integration

Select binding

Selecting elements with the object collections

Listing the management Knockout style

The uniqueName binding

Grid forms

Summary

4. Coding – AJAX, Binding Properties, Mapping, and Utilities

JSON done Knockout style

Mapping – first look

Connecting with AJAX remotely

Unmapping your data

Merging mapped data

Mapping options

Utility functions

ko.utils.arrayFilter()

ko.utils.arrayFirst()

ko.utils.arrayMap()

ko.utils.arrayGetDistinctValues ()

ko.utils.arrayForEach()

ko.utils.compareArrays()

Purifying our computations

Coding documents for computed observables

Form 1

Form 2

Form 3

Form 4

Using a computed observable

Using the computed context

Summary

5. The Joy of Templates

Native templates

Enhanced collection handling

Render event handling

Third-party template options

Modified template handling with Underscore

Live updates and the subscribe method in Knockout

Awesome template options

Summary

6. Packaged Elegance

Introduction to components

Dynamic component selection

Bring Your Own Tags (BYOT)

Enhancing attribute handling

Building your own libraries

Bootstrap component example

Understanding the AMD approach

Component-based SPAs

Best development strategies

Getting real

Coding time

Adding navigation

Adding pages

Time for some custom style

Bonus item

Building cross-page interaction

What next?

Summary

Index

累计评论(1条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部