function myfunction(msg)
    print("this is msg fun " .. msg);
end

local fun =_G["myfunction"];
if fun then
    fun("is ok");
end

 

相关文章: