文章分类 -  Lua

摘要:1 @param string classname 类名 2 @param [mixed super] 父类或者创建对象实例的函数 3 @return table 4 function class(classname, super) 5 6 if _G[classname] then 7 error 阅读全文
posted @ 2020-02-20 15:02 暗月梦影 编辑
摘要:1.Table的几个小知识点 table使用关联数组,我们可以使用任意类型的值来作为数组的索引(不能使用nil) table没有固定的大小,可以动态的添加元素 2.table的构造 思考一下:如果现在定义了一个table a,将table a赋值给table b,此时它们的内存情况是什么样呢? ab 阅读全文
posted @ 2020-02-20 14:16 暗月梦影 编辑

点击右上角即可分享
微信分享提示