TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Knockout 3.1 ships

87 点作者 johnny_reilly大约 11 年前

14 条评论

shaunol大约 11 年前
Knockout is so, so good.<p>I just wish it had proper API documentation. There are no real docs, only examples&#x2F;tutorials, this can be quite frustrating.<p>If you&#x27;ve never used data bindings in HTML&#x2F;JS, you HAVE to give this a try.<p>If you&#x27;re still using jQuery &amp; other manual event handlers to change the state of your UI, you GOTTA try it!
评论 #7344747 未加载
评论 #7345630 未加载
评论 #7347273 未加载
评论 #7346402 未加载
评论 #7345618 未加载
siegecraft大约 11 年前
Release notes: <a href="https://github.com/knockout/knockout/releases/tag/v3.1.0" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;knockout&#x2F;knockout&#x2F;releases&#x2F;tag&#x2F;v3.1.0</a>
noir_lord大约 11 年前
I absolutely adore Knockout.js.<p>I&#x27;m building a large enterprise SaaS system single handedly and while I&#x27;m a competent to good backend developer my front end skills are weak (mostly ancient JS and then jQuery stuff up to writing jQuery plugins) and Knockout has saved my bacon (when combined with Bootstrap 3).<p>It took me a weekend to get my head around the approach (and force feed some JS knowledge I was weak on) into my head and then on the Monday I wrote my first custom binding handler to allow me to do async file uploads (think Gmail attachments) as easily as<p><pre><code> &lt;input data-bind=&quot;ajaxfile: { property: &#x27;photo&#x27;, url: &#x27;&#x2F;ajax&#x2F;upload&#x27;, maxsize: 8388608, image: true}&quot; type=&quot;file&quot;&gt; </code></pre> The ability to use that to upload a file into the temporary store, return the hash for the file which is then submitted when the form is saved makes for a nicer UX (I hate those You clicked save not wait 5 minutes while we attach these pdf style messages) and has saved me a huge amount of time trying to shoehorn more complex jquery plugins that kinda-sorta do what I want if I squint at them.<p>The actual architecture is multi-page with each page been bound to it&#x27;s own view model (as the vast majority of pages are either forms, editing forms or showing tables) this has worked out really well so far (I also have a custom binding to bind a knockout property directly to a jquery datatable 1.10 instance which has made life somewhat easier but it&#x27;s hairy code (on the limit of what I&#x27;m capable of with javascript)).
Romoku大约 11 年前
Knockout is my go to library when I need data binding. It&#x27;s lightweight and doesn&#x27;t interfere with your markup.
评论 #7345596 未加载
leo_mck大约 11 年前
It always baffle me how little people here talk about DurandalJS (that uses knockout for its bindings). It is a nice alternative to angular... and it uses knockout which is awesome. If you like knockout, you should really take a look at it.
评论 #7345549 未加载
评论 #7344871 未加载
basicallydan大约 11 年前
I love knockout but I&#x27;m not sure whether to risk using it in mobile apps. Can anybody report on performance in a mobile SPA with a few views?
评论 #7347300 未加载
评论 #7346863 未加载
评论 #7349049 未加载
diggan大约 11 年前
Actual changelog for people interested: <a href="https://github.com/knockout/knockout/releases/tag/v3.1.0" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;knockout&#x2F;knockout&#x2F;releases&#x2F;tag&#x2F;v3.1.0</a><p>TL;DR: &quot;This release focuses mainly on performance and stability&#x2F;compatibility improvements, plus small enhancements to existing functionality (yes, we&#x27;re saving the big new features for v3.2). [...]&quot;
Mizza大约 11 年前
Any Django developers interested in Knockout may want to checkout my Django-Knockout-Modeler project:<p><a href="https://github.com/Miserlou/django-knockout-modeler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Miserlou&#x2F;django-knockout-modeler</a>
bvanvugt大约 11 年前
This is awesome, always happy to see continued work on Knockout.<p>We use it in our production single-page app at sendwithus, and while AngularJS is tempting, Knockout is so lightweight and nimble that it lets us move really quickly on front-end features.
benmorris大约 11 年前
I&#x27;m a big fan of knockout. I find myself using it in a lot of places. The declarative binding makes it so much easier to come back months or weeks after writing code and clearly see what is going on. That is opposed to the old way of using Jquery and a mess of glue code to tie models and elements together. Knockout has also saved me a lot of time and reduced the amount of javascript needed significantly.
mattchamb大约 11 年前
knockout is such an awesome library. I have only used it for a few toy projects, but I love how lightweight it feels; and how it doesnt feel like it takes over all of your html.<p>I also love how the ko.observable doesnt feel as magical as the angular binding. It makes me feel alot more in control
评论 #7346138 未加载
NicoJuicy大约 11 年前
Using knockout since shortly because it&#x27;s more supported on .Net (it will ship with Visual Studio).<p>And i have to say, i&#x27;m amazed by it.. It&#x27;s pretty awesome to create my first EditableHTML :)
jimaek大约 11 年前
Added to CDN too <a href="http://www.jsdelivr.com/#!knockout" rel="nofollow">http:&#x2F;&#x2F;www.jsdelivr.com&#x2F;#!knockout</a>
caseyf7大约 11 年前
What about Ractivejs.org? It looks similar. Can anyone compare their experience with the two?