Web的未来
新技术和新语言带来的改变in Dart 输出: 'top-level' CoffeeScript 2009,4年前 Jeremy Ashkenas CoffeeScript 受 Ruby 和 Python 影响较多 ● 简洁、语法清晰 ● 缩进表示 ● 变量声明和作用域 ● 支持类 ● …… CoffeeScript #coffee alert "I knew it!" if elvis //JavaScript if (typeof elvis !== "undefined" && elvis !== null) { alert("I knew it!"); } CoffeeScript math = root: Math.sqrt square: square cube: (x) -> x * square x math = { root: Math http://try.dartlang.org/ ● TypeScript http://www.typescriptlang.org/Playground/ ● CoffeeScript http://coffeescript.org/ CoffeeScript等编译器就是 JS 实现的,可以在线直接编译。 Dart 有所不同,dart2js 编译器 是 Dart 语言实现的,然后 dart2js 自己把自己编译成了0 码力 | 91 页 | 3.44 MB | 1 年前3
共 1 条
- 1













