发布于 2016-12-06 01:00:20 | 113 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的CoffeeScript 中文手册,程序狗速度看过来!

CoffeeScript

CoffeeScript是一套JavaScript的转译语言,创建者 Jeremy Ashkenas 戏称它是- JavaScript 的不那么铺张的小兄弟。因为 CoffeeScript 会将类似 Ruby 语法的代码编译成 JavaScript,而且大部分结构都相似,但不同的是 CoffeeScript 拥有更严格的语法。


CoffeeScript 1.12.0 发布了。 此次更新内容:

  • CoffeeScript 现在支持 ES2015 标记的模板字面量。Note that using tagged template literals in your code makes you responsible for ensuring that either your runtime supports tagged template literals or that you transpile the output JavaScript further to a version your target runtime(s) support.

  • CoffeeScript 现在提供一个 for…from 用于 ES2015 的输出语法  for…ofSorry they couldn’t match, but we came up with for…of first for something else.) This allows iterating over generators or any other iterable object. Note that using for…from in your code makes you responsible for ensuring that either your runtime supports for…of or that you transpile the output JavaScript further to a version your target runtime(s) support.

  • 在单反引号嵌入在 JavaScript 中,反引号现在可以通过`转义

  • 浏览器测试现在再次在浏览器中运行,如果您想测试浏览器,可以在这里访问

  • ES2015 中仅限用于 CoffeeScript 的关键字 imports and exports 现已被忽略.

  • 编译器现在在尝试导出匿名类时抛出一个错误

  • 与 Token 和位置数据相关的错误修复,更好的源映射和改进与下游工具的兼容性

完整更新内容发布说明

下载地址



历史版本 :
CoffeeScript 2.1.1 发布,脚本语言
CoffeeScript 2.1.0 发布,脚本语言
CoffeeScript 1.12.8 发布,脚本语言
CoffeeScript 2.0.0 正式发布,编译成 JS 的小巧语言
CoffeeScript 2.0.0-beta5 发布,编译成 JS 的小巧语言
CoffeeScript 2.0.0-beta2 发布,脚本语言
CoffeeScript 1.12.6 发布,脚本语言
CoffeeScript 2.0.0-alpha1 发布,脚本语言
CoffeeScript 1.12.5 发布,脚本语言
CoffeeScript 1.12.4 发布,脚本语言
CoffeeScript 1.12.3 发布,脚本语言
CoffeeScript 1.12.1 发布,脚本语言
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务