網上小搜了一下,發現原來官方手冊裏早已經給了答案,那就是靠lua內置的next函數. 即如此用:if next(a) == nil then. next其實就是pairs遍歷table時 ...
確定! 回上一頁