Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

knockout

> 编程语言
Open source

Knockout makes it easier to create rich, responsive UIs with JavaScript

10.6K stars0 likes3 views
WebsiteGitHub

About

Knockout makes it easier to create rich, responsive UIs with JavaScript

Knockout

Knockout is a JavaScript MVVM (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaScript and HTML. It uses observers to make your UI automatically stay in sync with an underlying data model, along with a powerful and extensible set of declarative bindings to enable productive development.

Getting started

Totally new to Knockout? The most fun place to start is the online interactive tutorials.

For more details, see

  • Documentation on the project's website
  • Online examples at http://knockoutjs.com/examples/

Downloading Knockout

You can download released versions of Knockout from the project's website.

For Node.js developers, Knockout is also available from npm - just run npm install knockout.

Building Knockout from sources

If you prefer to build the library yourself:

  1. Clone the repo from GitHub

    bash
    git clone https://github.com/knockout/knockout.git
    cd knockout
  2. Acquire build dependencies.

    Make sure you have Node.js and Java installed on your workstation. These are only needed to build Knockout from sources. Knockout itself has no dependency on Node.js or Java once it is built (it works with any server technology or none). Now run:

    bash
    npm install
  3. Run the build tool

    bash
    npm run grunt

    Now you'll find the built files in build/output/.

    To run a single task, use --

    bash
    npm run grunt -- build:debug

Running the tests

bash
npm test              # All tests (Node.js + headless Chrome)
npm run test:node     # Node.js non-DOM specs only
npm run test:browser  # Headless Chrome specs only
npm run grunt         # Build and test against production output

For interactive debugging, open spec/runner.html in your browser.

License

MIT license - https://www.opensource.org/licenses/mit-license.php

Issues· 352 open

View all issuesOpen on GitHub
  • #2627

    Update from 3.4.1 to 3.5.3 broke value binding on dynamically-created select element

    Updated Jul 31, 2026
  • #1902

    HTML5 video controls are not working when using with knockout component

    Updated Mar 27, 2025
  • #1083

    Trigger change event on value binding

    severity: minortype: featureaffected: very fewUpdated Jan 30, 2025
  • #2614

    Code changes to make updating from 2.x to 3.5.1 (latest) easier

    Updated Oct 26, 2024
  • #2611

    better implementation in ko.utils.setDomNodeChildren

    Updated Aug 28, 2024
  • #2214

    Server-side rendering

    Updated Jan 2, 2024
  • #2596

    Massive performance problem with dependencies.

    Updated Dec 1, 2023
  • #2605

    Looking for knockout-postbox alternative options

    Updated Feb 24, 2023
  • #788

    remove jquery.tmpl support

    type: metaUpdated Nov 9, 2022
  • #2598

    Templates don't work with SVG

    Updated Sep 28, 2022

> Tags

JavaScriptdata-bindingjavascriptknockoutmvvm

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言