javascript - Calling Jquery function in DART lang -
I'm trying to change the following jquery script in dart:
& lt ; Script & gt; (Function ($) {$ (window) .load (function () {$ ("content"). MCustomScrollbar ();});}) (jQuery); & Lt; / Script & gt;
I have written the following code in Dart:
js.context .callMethod (r '$', ['.content' ']) .callMethod ('MCustomScrollbar');
But this is not working. Any help is appreciated.
['. Content '']
in typo (instead of ['content']
) I like it if you have the Import Dart: JS;
and are not using the import package: js / js.dart '
.
Comments
Post a Comment