mirror of
https://github.com/wxd-gaming/test-all.git
synced 2026-05-08 14:36:26 +08:00
【测试】lua 字符串转table
This commit is contained in:
@@ -34,4 +34,10 @@ function diffTimeDay()
|
||||
return startDayTime, endDayTime, serverOpenDays <= resetDay
|
||||
end
|
||||
|
||||
diffTimeDay()
|
||||
diffTimeDay()
|
||||
|
||||
local tableString = "{key1 = 'value1', key2 = 'value2'}"
|
||||
local t = load("return " .. tableString)()
|
||||
|
||||
gameDebug.print("load string", type(t), t)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user