[英]Unbuffered Multi-line Comments in CoffeeScript?
如果我錯了,請糾正我,在CoffeeScript中使用無緩沖(不輸出.js)注釋的唯一方法是
# This is the only way to mute this single-line comments
###
緩沖多行注釋
### This will be outputted to the .js
For things like copyright notices.
###
但是沒有辦法獲得無緩沖的多行注釋?
# This is the only way to mute
# multiple-lines
謝謝。
正確。 但它不像它看起來那么困難,因為你的文本編輯器可能提供鍵盤快捷方式來評論/取消注釋行。 例如,在帶有jashkenas'bundle的TextMate中,您只需選擇要評論的行,然后點擊Cmd+/
將#
放在每個行的前面。 同樣的快捷方式也可以以這種方式取消注釋行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.