سؤال

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