【記錄】Lua中冒號的意義

當一個table內的方法被以冒號調用的話表示把這個table做爲第一個參數傳進去web local t = {} t.fun = function(tab,v) print(tab,v) end t:fun(123) t.fun(t,123)
相關文章
相關標籤/搜索