标准写法是:local b = {}b.__index = {}function b.__index:func1(name) ...endfunction b.__index:func2(name) ...end简写:local b = {}b.__index = bfunction b:func1(name) ...endfunction b:func2(name) ...end