Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
replaceAll函数主要是用来将 string 中的 old 替换为 new,返回替换后的 string
replaceAll
func replaceAll(s1 string, old string, new string) string
asdfgfhjkq asdef vjrta
replaceAll("asdfgfhjkq asdef vjrta", "asd", "AAA")
AAAfgfhjkq AAAef vjrta
10.3.5-5.2
replaceAll("10.3.5-5.2", ".", "-")
10-3-5-5-2
Was this page helpful?