跳转到内容

format

  • 格式化字符串

如果只是想格式化字符串,不进行输出,可以使用这个接口,此接口跟string.format接口等价,只是个接口名简化版。

lua
local s = format("hello %s", xmake)