js 判断是否为空对象、空数组 JSON.stringify(obj) === '{}'; JSON.stringify(obj) === '[]' https://www.cnblogs.com/xxhuan/p/6582114.html