local global = require('global')
--- inject_module global
local indexs = {
mgr_a = 'module.mgr_a',
mgr_b = 'module.mgr_b',
}
function mt:init()
for k, v in pairs(indexs) do
global[k] = require(v)
end
end
用于提示模块会被动态注入到global表中. 可能也会有inject_table 之类的需求.