评论
Sass vs. Scss 中的评论大致相似,除非涉及多行。SASS 多行是缩进敏感的,而 SCSS 依赖于注释终止符。
单行评论
style.scss
// Just this line will be commented!
h1 { color: red; }
style.sass
// Exactly the same as the SCSS Syntax!
h1
  color: red
多行评论
style.scss
发起人:/*
终结者:*/
/* This comment takes up
 * two lines.
 */
h1 {
   color: red;
}
这将为 h1 元素设置红色。
style.sass
现在,SASS 有两个启动器,但没有相应的终结器。SASS 中的多行注释对缩进级别很敏感。
发起人://和/*
// This is starts a comment,
   and will persist until you 
   return to the original indentaton level.
h1
  color: red
这将为 h1 元素设置红色。
使用/* Initiator 也可以这样做:
/* This is starts a comment,
   and will persist until you 
   return to the original indentaton level.
h1
  color: red
所以你有它! SCSS 和 SASS 的评论之间的主要区别!