会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Stay Hungry,Stay Foolish!
lightsong
{Web: [React, Vue, NodeJS, HTTP],DevOps:[Jenkins,Docker,K8S], Languages:[Python, JS, C, Lua, Shell, Groovy]}
博客园
首页
新随笔
联系
订阅
管理
2016年5月1日
LUA OOP 单例模式实现的 一个 方案
摘要: 单例 存在这么一类class, 无论class怎么初始化, 产生的instance都是同一个对象。 Code string.toHTMLCode = function(self) return encodeHTML(self) end -- Instantiates a class local fu
阅读全文
posted @ 2016-05-01 00:03 lightsong
阅读(1202)
评论(0)
推荐(0)
编辑
公告
Life Is Short, We Need Ship To Travel