%1$s
android: String.format()
kotlin:
JSON正确, String不正确 : string.replace(“””%${index + 1}${“””$”””}${“””s”””}”””,value,true)
JSON不正确, String正确: result.replace(“%${index+1}$\\s”,value)
%1$s
android: String.format()
kotlin:
JSON正确, String不正确 : string.replace(“””%${index + 1}${“””$”””}${“””s”””}”””,value,true)
JSON不正确, String正确: result.replace(“%${index+1}$\\s”,value)