Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function JavaScriptCode()
- {
- this['init'] = init;
- function init()
- {
- console.log('init');
- }
- }
- void main()
- {
- JsObject jsObject = new JsObject(['JavaScriptCode']);
- jsObject.callMethod('init', []);
- }
- <!-- Html File -->
- <!DOCTYPE html>
- <html>
- <body>
- <script src="main.js">
- <script src="main.dart">
- </body>
- </html>
Add Comment
Please, Sign In to add comment