js 判断空对象
2021-07-04 06:05
标签:message empty 路径 log ret bsp turn ons erro let hasObj = false; jq function isEmptyObject(e) { console.log($.isEmptyObject({"re": 2})); //false console.log(isEmptyObject()); //true 相关文章:http://blog.csdn.net/testcs_dn/article/details/40431835 js 判断空对象 标签:message empty 路径 log ret bsp turn ons erro 原文地址:http://www.cnblogs.com/ljbkyBlog/p/7120535.html
for (let i in data.imgPathInfo){
hasObj = true;
break;
}
if(!hasObj){
_this.$message.error(‘图片路径对象为空!‘);
}
var t;
for (t in e)
return !1;
return !0
}
console.log(isEmptyObject({})); //true
console.log(isEmptyObject(null)); //true
console.log(isEmptyObject(23)); //true
console.log(isEmptyObject({"te": 2})); //false