模块

it2025-01-19  31

模块:执行lua文件

require(“model_name”) 相同的文件被载入只执行一次,载入中文件就已经被执行

dofile(“hello”)每次载入都会执行,载入中文件就已经被执行

loadfile(“hello”)载入不会执行,()运行时会执行

 

注:类似于将文件用function扩展到当前文件

转载于:https://www.cnblogs.com/ad-1990/p/4121654.html

相关资源:ASP.NET开发典型模块大全 (修订版) (源代码)
最新回复(0)