不需要 你得有table 表示id和对应 函数的关系。比如fun_list={id1=luafun1,id2=luafun2,id3=luafun3}id1 id2 和对应的函数根据你的需要填写。调用的时候只需要local funid=GetFunID();fun_list[funid]()