Dart 是否支持使用现有的 JavaScript 库? [英] Will Dart support the use of existing JavaScript libraries?

查看:37
本文介绍了Dart 是否支持使用现有的 JavaScript 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解 Dart 编译为 JavaScript,并且我阅读了 Dart 语言规范在图书馆上,虽然我没有在那里看到答案.还搜索了他们的 讨论表 'existing' 这个词出现了 3 个不相关的结果.

I understand Dart compiles to JavaScript, and I read the Dart Language Spec on Libraries, although I didn't see an answer there. Also a search on their discussion form for the word 'existing' turns up 3 results that are not related.

有人知道 Dart 是否支持使用现有的 JavaScript 库,例如 jQuery 或 Raphael?

Does anyone know if Dart will support the use of existing JavaScript libraries such as jQuery or Raphael?

推荐答案

现在答案是肯定的!Dart 现在提供了一个 JS-interop 库,以便在您的 Dart 应用程序中使用现有的 JavaScript 代码.在此处了解更多信息:https://www.dartlang.org/articles/js-dart-互操作/

The answer is now Yes! Dart now ships a JS-interop library to use existing JavaScript code with your Dart app. Learn more here: https://www.dartlang.org/articles/js-dart-interop/

这篇关于Dart 是否支持使用现有的 JavaScript 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆