function myfunction(msg) print("this is msg fun " .. msg); end local fun =_G["myfunction"]; if fun then fun("is ok"); end
lua 根据函数名字符串来执行函数,布布扣,bubuko.com
lua 根据函数名字符串来执行函数
原文:http://www.cnblogs.com/emyueguang/p/3716308.html