断定JS对象是否为空

!Object.keys(myObject).length

参考

https://coderwall.com/p/_g3x9q/how-to-check-if-javascript-object-is-emptyjavascript

相关文章
相关标签/搜索