Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Jquery getScript (Dart から JavaScript をロードするため) に相当する Dart は何ですか? http://api.jquery.com/jquery.getscript
ご提案いただきありがとうございます。
Dart がこれを行う機能を提供しているとは思いません。
HttpRequest を使用してスクリプトをフェッチし、スクリプト要素を作成し、受信したテキストを要素に追加してから、Dart-js-Interop を使用して JavaScript 関数を呼び出すことができます。
または、jQuery を追加getScriptして、Dart-js-Interop を使用して呼び出すこともできます。
getScript