문제

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