Skip to main content

参数

string
必填
要 escape 的 string。function 使用 string type checking 读取这个 argument。

返回值

string
不带 opening 和 closing quote 的 escaped JSON string content。Quotes、backslashes、common control characters 和 bytes below 0x20 会被 escape。

示例

为 JSON string 内部 escape string,不添加 surrounding quotes。