📜  LESS字符串函数

📅  最后修改于: 2021-01-06 04:42:15             🧑  作者: Mango

较少的字符串函数

Less支持以下字符串函数:

Index String Functions Description
1) Less string escape function The Less string escape function is used to apply URL encoding to special characters found in the input string.
2) Less string e function The Less string e function takes string as a parameter and returns its content without quotes.
3) Less string % format function The Less string format function is used to format string with placeholders. The format function uses some parameters: string: It is used to format string with placeholders. anything*: It is used to provide values to replace placeholders.
4) Less string Replace function The Less string replace function is used to replace a text with a string. The replace function uses some parameters: string: It searches the string and replace in. pattern: It searches the regular expression pattern. replacement: It replaces the string that matches the pattern.flags: These are optional regular expression flags.