function MainScene:removeRequiredByName( preName )
for key, _ in pairs(package.preload) do
if string.find(tostring(key), preName) == 1 then
package.preload[key] = nil
end
end
for key, _ in pairs(package.loaded) do
if string.find(tostring(key), preName) == 1 then
package.loaded[key] = nil
end
end
end
请发表评论