卸载脚本模块化require("module") package.loaded["module"] 返回boolean,该脚本是否被加载(执行) 卸载脚本package.loaded["module"] = nil 模块化-- file m.luam = {}m.fun = function() print(123)endreturn m m = require ("m") m.fun() --> 123