前言Lua 的物件系統(object system) 是以原型(prototype) 為基礎, ... __index = Point -- The constructor. function Point.new(x, y) obj = {} obj._x = x obj.
確定! 回上一頁