Will Dart support the use of existing JavaScript libraries?

后端 未结 5 1713
北海茫月
北海茫月 2020-12-07 13:41

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

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 14:10

    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/

提交回复
热议问题