Web 上與 JavaScript 互調

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

For help using the js package, see the following:

  • Documentation for the js package:
  • Packages that use the js package:
    • sass is an example of a more unusual use case: providing a way for JavaScript code to call Dart code.