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

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

问题描述

我了解Dart编译为JavaScript,我阅读了 Dart语言规范在图书馆,虽然我没有看到一个答案。也搜索他们的讨论表单中的现有字词会显示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库,以使用现有的JavaScript代码与您的DART应用程序。点击此处了解详情: https://www.dartlang.org/articles/js-dart- interop /

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天全站免登陆