tostring()tostring()
将输入转换为字符串表示形式。Converts input to a string representation.
tostring(123) == "123"
语法Syntax
tostring(
Expr
)
参数Arguments
Expr
:将转换为字符串的表达式。Expr
: Expression that will be converted to string.
返回Returns
如果 Expr
值不为 null,则结果将为 Expr
的字符串表示形式。If the Expr
value is non-null, the result will be a string representation of Expr
.
如果 Expr
值为 null,则结果将为空字符串。If the Expr
value is null, the result will be an empty string.