以字符串形式执行Lua代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

--Defining a string to use as function later
funcStr = "print('test')"
--Running it directly
loadstring(funcStr)()
--Defining a function from the string and running it
func = loadstring(funcStr)
func()