table判空

function isTableEmpty(t)
    if t == nil or _G.next(t) == nil then
        return true
    else
        return false
    end
end

猜你喜欢

转载自xiangjie88.iteye.com/blog/2274729