问题
I now know that I can't interact with Dart via the console, but I was hoping that there may be another way to invoke a REPL within Dartium.
Basically, what I would like to be able to do is: 1. Go to a website in Dartium 2. Invoke some sort of Dart REPL 3. Mess about with the DOM, CSS etc., using Dart commands, rather than Javascript.
Is this possible at all? Or, is the Dart development model all Edit/Refresh?
Cheers Andy
回答1:
Chrome Dev tools in Dartium will now let you do this very nicely.
回答2:
Dart edit model is Edit/Refresh. Maybe you are looking for something like http://try.dartlang.org/
来源:https://stackoverflow.com/questions/14801429/is-there-anyway-to-invoke-a-dart-repl-on-a-website-when-using-dartium