摘要:
os.date函数定义 原型:os.date ([format [, time]]) 解释:返回一个按format格式化日期、时间的字串或表。 lua源码中os.date的注释如下: lua Returns a string or a table containing date and time, 阅读全文
摘要:
在绝大多数情况下,我们都不会用到rawget和rawset。 本文的运行环境:lua 5.3 for windows rawset 赋值操作 rawset是在设置值的过程,进行处理,比如:当某个值改变时,触发事件。或修改某个key为新值。 来看看rawset函数的定义 lua Sets the re 阅读全文