how to show a message look like on php
echo “helloworld”;
But in dart
I try
#import ('dart:html');
void main () {
var textElement = new Element.html("Hello world");
window.document.body.nodes.add(textElement );
}
but it not work, i don’t like document.query('#idname').innerHTML
any way to do what i want,
thank everybody.
You need to add an actual element to the page.
that is you use
<p>Hello world</p>instead of justHello world.