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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Way.js – Simple two-way databinding

48 点作者 Xelom将近 11 年前

5 条评论

krat0sprakhar将近 11 年前
Was posted 3 days ago - <a href="https://news.ycombinator.com/item?id=8176672" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8176672</a>
评论 #8192367 未加载
Lavinski将近 11 年前
<a href="http://knockoutjs.com/" rel="nofollow">http:&#x2F;&#x2F;knockoutjs.com&#x2F;</a> is also a great simple data binding lib but without any dependencies.
评论 #8193053 未加载
评论 #8192158 未加载
评论 #8192499 未加载
alz将近 11 年前
this is cool, but it&#x27;s a bit misleading to declare something &#x27;lightweight&#x27; if it has 5 dependencies including jquery and underscore
评论 #8201911 未加载
julius将近 11 年前
I think AngularJS has a very strong 2-way databinding offering (with its many directives and implicit data-change detection).<p>It is actually possible to just use the databinding features of AngularJS without all the framework stuff. Just need a few lines of Javascript to get yourself a scope.<p>Or just use my code: <a href="https://github.com/julius/AngularLite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;julius&#x2F;AngularLite</a>
the8472将近 11 年前
An alternative to declaring bindings in HTML is to generate the forms with javascript and bind the data with d3js. 2-way binding should be achievable with d3&#x27;s support for event handlers. That should also provide more flexibility as you can always drop down to DOM APIS or include other Javascript-based form controls.