为空:array == undefined || array.length <= 0 (顺序不能调换) 不为空: array !==undefined && array.length > 0 转载于:https://www.cnblogs.com/-zrj/p/11528090.html