正在浏览:小程序

在微信小程序中判断对象是否为空可以使用Javascript ES6新增方法ES6 新增的方法Object.keys(): if (Object.keys(object).length === 0) { return false}return true