代码比较
复制代码
helloh2{
text-decoration: underline;
font-size:0.9em;
color:gray;
}
条件判断
如果testBoolean 是 true ,本句话就会显示
取反 ,所以如果testBoolean 是 true ,本句话就不会显示
unless 等同于上一句,所以如果testBoolean 是 true ,本句话就不会显示
显示 转义和非转义的 html 文本
显示对象以及对象属性
*{}方式显示属性
算数运算
h2{
text-decoration: underline;
font-size:0.9em;
color:gray;
}
条件判断
如果testBoolean 是 true ,本句话就会显示
取反 ,所以如果testBoolean 是 true ,本句话就不会显示
unless 等同于上一句,所以如果testBoolean 是 true ,本句话就不会显示