Qua*_*Van 8 syntax comments multiline unbuffered coffeescript
如果我错了,请纠正我,在CoffeeScript中使用无缓冲(不输出.js)注释的唯一方法是
# This is the only way to mute this single-line comments
Run Code Online (Sandbox Code Playgroud)
在###多行缓冲区的意见
### This will be outputted to the .js
For things like copyright notices.
###
Run Code Online (Sandbox Code Playgroud)
但是没有办法获得无缓冲的多行注释?
# This is the only way to mute
# multiple-lines
Run Code Online (Sandbox Code Playgroud)
谢谢.
正确.但它不像它看起来那么困难,因为你的文本编辑器可能提供键盘快捷键来评论/取消注释行.例如,在带有jashkenas'bundle的TextMate中,您只需选择要评论的行并点击Cmd+/放在#每个行的前面.同样的快捷方式也可以以这种方式取消注释行.
| 归档时间: |
|
| 查看次数: |
2076 次 |
| 最近记录: |