-
unquote($string)
:删除字符串中的引号;
unquote( ) 函数只能删除字符串最前和最后的引号(双引号或单引号),而无法删除字符串中间的引号
//.scss
.test2 {
content: unquote("'Hello Sass!");
}
.test4 {
content: unquote("'Hello Sass!'");
}
.test5 {
content: unquote('"Hello Sass!"');
}
//.css
.test2 {
content: 'Hello Sass!;
}
.test4 {
content: 'Hello Sass!';
}
.test5 {
content: "Hello Sass!";
}
网友评论