You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 之类的需求.
The text was updated successfully, but these errors were encountered:
用于提示模块会被动态注入到global表中. 可能也会有inject_table 之类的需求.
The text was updated successfully, but these errors were encountered: