...
- 格式:
- 说明:
示例:
Code Block language go str:=`aaaa'"\dddd` fmt.Println(rsStr:=gstr.AddSlashes(str) fmt.Println(rsStr) //输出结果: aaaa\'\"\\dddd
...
示例:
Code Block | ||
---|---|---|
| ||
str:=`aaaa'"\dddd` fmt.Println(rsStr:=gstr.AddSlashes(str) fmt.Println(rsStr) //输出结果: aaaa\'\"\\dddd |