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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -