lua require载入父目录路径

先通过下面一行代码将父目录添加到lua的包路径中

package.path = package.path .. ";..\\?.lua;"

然后直接引用即可:

require("aaaaa")




你可能感兴趣的:(lua,require,父目录)