How can the Google Closure UI Library be used with Google DART?

有帮助吗?

解决方案

Dart has no facility for using JavaScript libraries. This is by design as Dart is intended to target both the Dart VM and Dart translated to JS. It is possible to workaround this to some extent by using message passing between iFrames and web workers.

其他提示

Although at present, you can't use the closure libraries directly, some effort is underway to port some of the more useful libraries, for example, the crypto libraries are here: http://code.google.com/p/dart-crypto-lib/

You can use the js package to use any Js library. Have a look at Using JavaScript from Dart: The js Library to know how to use it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top