OK , 看源码看到了 thanks
在 2016年8月10日星期三 UTC+8下午11:15:40,YuanSheng写道:
你可以先试用一下当前最新的版本,是有这两个命令的。
注意下面的代码,尤其是注释部分:
setmetatable(_M, {__index = function(self, cmd)
local method =
function (self, ...)
return _do_cmd(self, cmd, ...)
end
-- cache the lazily generated method in our
-- module table
_M[cmd] = method
return method
end})
--
YuanSheng Wang
---------------------------------------
OpenResty lover ^_^