1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!DOCTYPE html> <html> <head> <meta charset= "utf-8" > <title>Sample of Dart language</title> <link rel= "stylesheet" href= "sample2.css" > </head> <body> <h1>Sample of Dart language</h1> <p id= "result" >Dart言語のサンプルです</p> <script type= "application/dart" src= "sample2.dart" ></script> <script src= "packages/browser/dart.js" ></script> </body> </html> |
1 2 3 4 5 | import 'dart:html' ; void main() { querySelector( "#result" ).style.fontSize = "24pt" ; } |