摘要: 通过函数闭包的方式来实现面向对象 1 -- 通过函数闭包的方式来实现面向对象 2 3 function People(name) 4 local self = {} 5 local function init() 6 self.name = name 7 end... 阅读全文
posted @ 2016-01-24 21:44 金胖胖 阅读(295) 评论(0) 推荐(0) 编辑