• Web 上与 JavaScript 互调

    Web 上与 JavaScript 互调

    The Dart web platform supports callingJavaScript using the js package,also known as package:js.

    For help using the js package, see the following:

    • Documentation for the js package:
      • pub.dev site page
      • API reference
    • Packages that use the js package:
      • firebase_web is a good example of providing a Dart-like APIto a JavaScript library.
      • sass is an example of a more unusual use case: providing away for JavaScript code to call Dart code.