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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Data - DOM binding using ES6 Proxies

10 点作者 potch超过 11 年前

2 条评论

zaius超过 11 年前
Nice example. I think proxies are really going to clean up a lot of the Javascript binding libs out there.<p>Any idea what&#x27;s been holding back the adoption of proxies? It&#x27;s still only implemented in firefox: <a href="http://kangax.github.io/es5-compat-table/es6/#Proxies" rel="nofollow">http:&#x2F;&#x2F;kangax.github.io&#x2F;es5-compat-table&#x2F;es6&#x2F;#Proxies</a>
snird超过 11 年前
For this specific problem Object.observe will offer a better solution, but for now Object.observe is only supported in Chrome while proxies are only supported in Firefox. Not that it matters in any way, as IE is far far behind..